# Dropbox

:::tip Available
This integration is available in Frihet. Configure it in **Settings → Integrations → Dropbox**.
:::

Connect your Dropbox account to Frihet to attach documents, receipts, and files directly to your invoices, expenses, and clients. Dropbox is a cloud storage platform with over 700 million users. With this integration, you can link files stored in Dropbox with your accounting records in Frihet and configure the automatic saving of the PDF invoices you generate.

## What is it for?

- **Attach documents** — Select files from Dropbox and link them to invoices, expenses, or client profiles in Frihet
- **Automatic PDF Backup** — PDF invoices generated in Frihet are automatically saved to a Dropbox folder
- **Digital Receipts** — Link photos of receipts stored in Dropbox with expenses recorded in Frihet
- **Automatic Organization** — Automatic folder structure by year, month, and document type
- **Centralized Access** — All documents associated with an invoice or expense are accessed from a single location

## Requirements

- Active account on [Dropbox](https://www.dropbox.com) (free or paid)
- Frihet Pro or Premium Plan
- Dropbox OAuth authorization (managed directly from Frihet)

## How to connect

### Step 1: Authorize Dropbox from Frihet

1. In Frihet, go to **Settings → Integrations**
2. Find **Dropbox** and click on the card
3. Click on **Connect with Dropbox**
4. A Dropbox authorization window will open — log in if you haven't already
5. Accept the requested permissions (Frihet only accesses the designated folder, not your entire Dropbox)

### Step 2: Configure the destination folder

1. Once authorized, select or create the **base folder** where Frihet will store documents (e.g., `/Frihet/`)
2. Activate **automatic PDF backup** if you want every generated invoice to be saved in Dropbox
3. Click on **Save**

### Step 3: Attach files

1. When editing an invoice or expense, click on the **Attach from Dropbox** button
2. Browse your folders and select the file
3. The file is linked to the record in Frihet

## Data that synchronizes

| Data | Direction | Details |
|------|-----------|----------|
| PDF Invoices | Frihet → Dropbox | Automatic copy of each generated PDF invoice |
| Attached Files | Dropbox → Frihet | Link to the file in Dropbox associated with the invoice/expense |
| Folder Structure | Frihet → Dropbox | Folders automatically created: `/Frihet/2026/03/Facturas/` |
| Receipts | Dropbox → Frihet | Images or PDFs of receipts linked to expenses |
| Contracts | Dropbox → Frihet | Documents linked to client profiles |

## Use Cases

### Freelancer who needs to save receipts

You receive paper receipts and photograph them with your mobile phone, uploading them automatically to Dropbox. From Frihet, you link each receipt photo to the corresponding expense. When your accountant asks for supporting documents, they have them all accessible from Frihet.

### Agency with per-client documentation

You manage contracts, briefings, and deliverables in Dropbox for each client. You can link these documents to the client's profile in Frihet, having a complete view: issued invoices + project documentation, all from a single place.

### Freelancer with automatic backup

You generate invoices in Frihet and want to have an organized backup. With automatic backup, each PDF invoice is saved in Dropbox under a folder structure by year and month. If you ever need to search for an old invoice, you'll find it in both Frihet and Dropbox.

## Troubleshooting

### Authorization error

- The Dropbox session may expire — reconnect from **Settings → Integrations → Dropbox → Reconnect**
- Verify that you have not revoked Frihet's permissions from Dropbox's security settings
- If you changed your Dropbox password, you need to re-authorize the connection

### PDFs are not saved in Dropbox

- Verify that **automatic backup** is activated in the integration settings
- Check that the destination folder exists and has not been deleted or moved in Dropbox
- If your Dropbox account is full, files will not be uploaded — free up space or upgrade your plan

### Cannot attach files

- Ensure that the file does not exceed the size limit (50 MB per file)
- Verify that the file format is compatible (PDF, JPG, PNG, XLSX, DOCX)
- Check that the connection with Dropbox is still active in Settings

### Folders are not created automatically

- The automatic structure is only created when a new PDF is generated — empty folders are not created
- If the base folder was deleted in Dropbox, Frihet will recreate it in the next synchronization

## Next steps

- [Connect Google Drive as a storage alternative](./google-drive)
- [Scan receipts with OCR in Frihet](../gastos/escaneo-ocr)
- [Manage attached documents in invoices](../facturacion/facturas)
