---
title: "Usage"
weight: 30
description: "Browsing NextCloud files, managing the folder tree, archiving and sharing from Dolibarr."
source_hash: "53b72f0d"
---

# Usage

## DoliDrive tab on Third party cards

After activation and configuration of the module, a **DoliDrive** tab appears on each Third party card. This tab displays the customer's NextCloud file explorer.

![DoliDrive tab on a third party card with the list of files and folders](screenshots/onglet-tiers-fichiers.webp)

### File navigation

The explorer displays the customer's files and folders as a list. For each item, you see:

- The file or folder name
- The type (file or folder)
- The size
- The last modification date

Click a folder to navigate into it. Click a file to download it.

### Photo album mode

Click the **Album** button to switch the display to gallery mode. This mode displays thumbnails of the images contained in the current folder. Click the list button to return to the standard display.

### Open in NextCloud

The link-shaped button (infinity icon) opens the current folder directly in the NextCloud web interface, in a new tab.

### Rename a file

Hover a file: a pencil shows next to its name (in album mode, among the buttons of the tile). Click it, type the new name, then confirm with the check mark or the Enter key. The Escape key cancels. The file is renamed on NextCloud and the page reloads with the new name.

- The pencil only shows for users holding the DoliDrive write permission.
- Only files can be renamed from Dolibarr, not folders.
- A name already used in the same folder is refused: no file is ever overwritten.
- The name cannot contain the characters `/ \ % " < >`, nor start with a dot.

### Create the home directory

If the customer's folder does not exist yet on NextCloud, the **Create home directory** button appears. It creates the customer's root folder on the NextCloud server.

### Create the tree

The **Create the tree** button creates all the subfolders configured in the [configuration](/dolidrive/configuration) for this customer. This operation is idempotent: existing folders are not modified.

### Sending files by email

Select one or more files, then click the email send button. Dolibarr opens the email form with the selected files as attachments.

> **Warning**: Files that are too large cannot be attached. A message tells you if some files could not be attached.

## DoliDrive tab on Project cards

A **DoliDrive** tab also appears on each Project card. It works the same way as the Third party tab, with the additional ability to create the project-specific tree (subfolders per task, storage folders for linked documents).

![DoliDrive tab on a project card with the file explorer](screenshots/onglet-projet-fichiers.webp)

## Automatic archiving

When archiving is enabled in the [configuration](/dolidrive/configuration) (Archives tab), documents generated by Dolibarr are automatically copied to NextCloud:

- **Quotes** -- copied when the PDF is generated
- **Orders** -- copied when the PDF is generated
- **Invoices** -- copied when the PDF is generated

The destination path is the one configured in the Archives tab, with automatic substitution of the `__THIRDPARTY_NAME__` variable by the customer name.

## Product synchronization

If product file synchronization is enabled in the **Linked files** tab:

- Files attached to product cards in Dolibarr are copied to NextCloud
- Files added in NextCloud are imported into the native Dolibarr DMS
- Deletion is propagated according to the chosen configuration

## Share links

DoliDrive allows you to create NextCloud share links directly from Dolibarr.

### Create a share link

1. From the file explorer, find the file to share
2. Click **Create a share link**
3. Configure the share options:

| Option | Description |
|--------|-------------|
| Label | Optional name to identify the share |
| Password protection | Password required to access the file (leave empty for none) |
| Expiration date | Date after which the link no longer works |
| Permissions | Read only, allow editing, or allow upload |

4. Click **Validate**

### Manage existing shares

Existing share links are displayed with their URL, creation date and expiration date. You can:

- **Copy the link** to the clipboard
- **Edit** the share options (password, expiration, permissions)
- **Delete** the share link

## Scheduled synchronization

DoliDrive registers a scheduled task (cron) that runs the synchronization from NextCloud to Dolibarr every 15 minutes. This task is disabled by default.

To enable it:

1. Go to **Home > Setup > Scheduled tasks**
2. Find the **SyncNextCloudToDolibarr** task
3. Enable it

## NextCloud webhook

DoliDrive provides a webhook entry point at the `dolidrive/public/hook.php` address. Configure NextCloud to send notifications to this URL to trigger real-time synchronizations.

If you have defined an HMAC secret key in the [configuration](/dolidrive/configuration), all webhook requests must include the `X-Dolidrive-Signature` header containing the HMAC-SHA256 signature of the request body.

## Activity logs

The **Logs** tab of the module configuration displays a detailed log of all operations performed by DoliDrive.

![Activity log page with filters and the list of operations](screenshots/logs-activite.webp)

### Recorded operation types

| Action | Description |
|--------|-------------|
| Upload | Sending a file to NextCloud |
| Download | Downloading a file from NextCloud |
| Delete | Deleting a file |
| Create folder | Creating a folder on NextCloud |
| Sync | Synchronizing files between Dolibarr and NextCloud |
| Queue add | Adding an operation to the queue |
| Queue process | Processing a queued operation |
| Cache purge | Purging the metadata cache |
| Webhook | Receiving a webhook notification |
| Authentication | Authentication event |

### Available filters

You can filter the logs by:

- Level (information, warning, error)
- Action type
- User
- Period (start and end date)
- Free text

### Log retention

Logs are automatically purged beyond the configured retention period (default: 90 days). You can also purge the logs manually from this page.

## User groups and bank accounts

DoliDrive adds extra fields on two Dolibarr objects:

### User groups

| Field | Description |
|-------|-------------|
| Enable automatic creation | Enables automatic creation of the tree in the external DMS for this group |
| List of subfolders | Tree of subfolders to create automatically, with the substitution variables `__THIRDPARTY_NAME__`, `__SUPPLIER_NAME__` and `__BANK_NAME__` |

### Bank accounts

| Field | Description |
|-------|-------------|
| Make this account accessible | Enables the use of the `__BANK_NAME__` keyword for this bank account in automatic tree creations |
