Module DoliDrive

Revision as of 22:07, 4 December 2026 by Eric.seigne (talk | contribs) (DoliDrive 1.0.20)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Information


Module name DoliDrive
Editor / Editeur CAP-REL - cap-rel.fr
Download or buy page / Page achat ou téléchargement External module - www.dolistore.com
Status / Statut / Estado Stable
Prerequisites / Prérequis A NextCloud server reachable over HTTPS

Dolibarr min version: See on Dolistore    Dolibarr max version: See on Dolistore

Last update date / Date mise à jour fiche / Fecha última actualización 2026-12-4
Note / Nota Your NextCloud files inside Dolibarr: a DoliDrive tab on every third party and every project, folder trees created automatically, archiving of quotes, orders and invoices, share links, versions and an activity log.

Features

The native Dolibarr document management stores files on the server, with no access from outside. DoliDrive connects your ERP to a NextCloud server over WebDAV: your documents live in NextCloud, where your team opens them from the desktop, a phone or the web, and stay reachable from Dolibarr.

At a glance

  • For whom: companies that want their documents in NextCloud without losing access from Dolibarr, filed per customer and per project with no double entry.
  • What the module does: it shows the NextCloud files of a third party or a project inside Dolibarr, creates the folder trees, archives the documents Dolibarr generates into NextCloud and synchronises the product files.
  • What it does not do: it does not provide the NextCloud server, which stays yours to run; it renames files from Dolibarr, not folders.

Feature list

  • File browser - a DoliDrive tab on every third party and every project, as a list or as a photo gallery with a fullscreen viewer; a folder holding only images or videos switches to the gallery on its own.
  • Rename - a pencil next to the name of a file renames it on NextCloud, never overwriting a file of the same name.
  • Search - by file name, and by content when the NextCloud server indexes the text of the documents.
  • Versions - the versions NextCloud keeps of a file can be browsed and restored from Dolibarr.
  • Share links - create, edit and delete public NextCloud links, protected by a password and an expiry date, read only or editable.
  • Send by email - the selected files go as attachments from the Dolibarr email form.
  • Automatic folder trees - sub-folders created per customer, supplier, project or task from a template, with the __THIRDPARTY_NAME__, __SUPPLIER_NAME__ and __BANK_NAME__ variables.
  • Archiving - quotes, orders and invoices copied into NextCloud when their PDF is generated.
  • Product files - synchronised both ways between the Dolibarr document management and NextCloud.
  • Access zones - a sub-folder reserved to the user groups of your choice.
  • Queue - a failed upload is retried instead of being lost, and its author is emailed when it finally fails.
  • Activity log - every operation is recorded, with filters by level, action, user and period.
  • Quota - the NextCloud quota and the size of the current folder are shown, with a warning near the limit.
  • Webhook - NextCloud can notify DoliDrive of a change, through a request signed with HMAC-SHA256.
  • Languages - interface in English, French, German, Spanish and Italian.

Screenshots

Links

Requirements

Item Version or condition
Dolibarr 18.0 or later
PHP 7.4 or later
NextCloud a server reachable over HTTPS and a dedicated account, whose login is not "dolibarr" (a word NextCloud reserves)
Permissions an administrator account to install, enable and set up the module

Installation

  • Download archive file of module (.zip file) from web site www.dolistore.com or from any other source.
  • Install module into the /custom folder of Dolibarr:
    • Go to Home - Setup - Modules - Deploy/install external app/module
    • Upload the file. Note: If it fails because upload from this page has been locked by your web hosting provider, you can manually unzip the file into the /custom directory from command line: Go into the /custom directory and uncompress file with command unzip modulefile.zip then check that the directory with the nameof the module is inside the /custom directory. If into a subdirectory, just move it into /custom.
  • Module should be ready to be activated and used.

Upgrade

  1. Install the new version from Home > Setup > Modules/Applications > Deploy/install external app/module.
  2. Disable then enable DoliDrive again: re-enabling applies the database updates and records the tabs and the permissions. It removes neither the configuration nor the files.

Uninstall

Disable the module from Home > Setup > Modules/Applications. The files stay on the NextCloud server.

Setup

To use this module, you must first enable it using an administrator account, via the menu option "Home - Setup - Modules".

Choose the tab where the module is listed. Then click on "Activate".

The module is now activated.

If a cog icon appears   on module thumb or at end of the line of the module, click on it to access the setup page specific to the module.

The setup is in Home > Setup > Modules > DoliDrive.

NextCloud connection

The Configuration tab holds the server address, the NextCloud login, the BASE sub-folder at the root of the whole tree and the name of the customers folder. The Generate an API key button opens a NextCloud window where you grant access; the key is then saved on its own. The Test connection button checks that DoliDrive reaches the server.

Setting Role Default
Customer folder tree sub-folders created for every customer, one per line empty
Active customers only only handles customers with a commercial activity in the last twelve months no
HMAC secret key signature required from the webhook requests; empty, the webhook refuses everything empty
Maximum file size size above which a file is not downloaded 50 MB
Cache lifetime how long file information is kept, in seconds 86,400 (24 h)

Other tabs

  • Projects: a folder tree per project and per task, and the destination folders of the documents linked to the project.
  • Archives: archiving of quotes, orders and invoices, with their destination folder.
  • Linked files: synchronisation of the product files and propagation of deletions.
  • Access zones: sub-folders reserved to user groups.
  • Logs: the activity log, kept 90 days by default.

Scheduled job

DoliDrive records the SyncNextCloudToDolibarr job, every 15 minutes, disabled at installation. Enable it in Home > Setup > Scheduled jobs: it processes the upload queue, synchronises the product files and purges the cache and the log.

Permissions

Three permissions are granted from Home > Users & Groups, Permissions tab:

  • read: browse and download files, granted by default;
  • write: upload and rename files, create folders, manage share links;
  • delete: delete files and share links.

Usage

Once enabled and set up, a DoliDrive tab appears on every third party and every project.

Browse the files

Click a folder to enter it, a file to download it. The Album button switches to a thumbnail gallery. The infinity button opens the current folder in the NextCloud web interface. When the customer folder does not exist yet, Create home folder creates it, and Create folder tree adds the configured sub-folders without touching the existing ones.

Rename a file

When you hover over a file, a pencil appears next to its name, or among the buttons of the tile in the gallery. Type the new name and confirm with Enter; Escape cancels. A name already used in the same folder is refused.

Share a file

Create share link asks for a label, a password, an expiry date and the permissions of the link. The existing links are copied, edited and deleted from the same window.

Every screen is described in the usage guide.

FAQ

The connection test fails.
Check that the server address uses HTTPS, that the login is not "dolibarr", that the API key was generated and that the BASE folder exists on NextCloud.

How do I generate a new API key?
Empty the Connection key to your NextCloud server API field and save: the Generate an API key button is active again.

Documents are not archived.
Archiving must be enabled for that document type in the Archives tab, with a destination folder the NextCloud account is allowed to write.

The rename pencil does not show.
It is reserved to users with the DoliDrive write permission, and only shows on files, not on folders.

Every question: FAQ of the documentation.

Development

Developments and improvements can be suggested to the project lead by email (see the headers of the source files) or through the support form.