Overview
The Dropbox Connector provides functionality to retrieve files from Dropbox cloud storage and register them in the Fess index.
This feature requires the fess-ds-dropbox plugin.
Supported Services
Dropbox (File Storage)
Dropbox Paper (Documents)
Prerequisites
Plugin installation is required
A Dropbox developer account and application creation is required
Access token acquisition is required
Installing the Plugin
Install from the admin console under “System” -> “Plugins”:
Download
fess-ds-dropbox-X.X.X.jarfrom Maven CentralUpload and install from the plugin management screen
Restart Fess
Or refer to Plugin for details.
Configuration
Configure in the admin console under “Crawler” -> “Data Store” -> “Create New”.
Basic Settings
| Item | Example |
|---|---|
| Name | Company Dropbox |
| Handler Name | DropboxDataStore or DropboxPaperDataStore |
| Enabled | On |
Parameter Configuration
access_token=sl.your-dropbox-token-here
basic_plan=false
Parameter List
| Parameter | Required | Description |
|---|---|---|
access_token | Yes | Dropbox access token (generated in App Console) |
basic_plan | No | Set to true for Basic plan (default: false) |
Script Configuration
For Dropbox Files
url=file.url
title=file.name
content=file.contents
mimetype=file.mimetype
filetype=file.filetype
filename=file.name
content_length=file.size
last_modified=file.client_modified
role=file.roles
Available fields:
| Field | Description |
|---|---|
file.url | File preview link |
file.contents | File text content |
file.mimetype | File MIME type |
file.filetype | File type |
file.name | File name |
file.path_display | File path |
file.size | File size (bytes) |
file.client_modified | Last modified date on client side |
file.server_modified | Last modified date on server side |
file.roles | File access permissions |
For Dropbox Paper
title=paper.title
content=paper.contents
url=paper.url
mimetype=paper.mimetype
filetype=paper.filetype
role=paper.roles
Available fields:
| Field | Description |
|---|---|
paper.url | Paper document preview link |
paper.contents | Paper document text content |
paper.mimetype | MIME type |
paper.filetype | File type |
paper.title | Paper document title |
paper.owner | Paper document owner |
paper.roles | Document access permissions |
Dropbox Authentication Setup
Access Token Acquisition Steps
1. Create an App in Dropbox App Console
Access https://www.dropbox.com/developers/apps:
Click “Create app”
Select “Scoped access” for API type
Select “Full Dropbox” or “App folder” for access type
Enter app name and create
2. Configure Permissions
In the “Permissions” tab, select required permissions:
Required permissions for file crawling:
files.metadata.read- Read file metadatafiles.content.read- Read file contentsharing.read- Read sharing information
Additional permissions for Paper crawling:
files.content.read- Read Paper documents
3. Generate Access Token
In the “Settings” tab:
Scroll to “Generated access token” section
Click “Generate” button
Copy the generated token (this token is only displayed once)
Warning
Keep your access token secure. Anyone with this token can access your Dropbox account.
4. Configure Token
Set the obtained token in the parameters:
access_token=sl.your-dropbox-token-here
Basic Plan Settings
Dropbox Basic Plan Limitations
For Dropbox Basic plan, API limits differ. Set the basic_plan parameter to true:
access_token=sl.your-dropbox-token-here
basic_plan=true
This enables processing that accommodates API rate limits.
Usage Examples
Crawling All Dropbox Files
Parameters:
access_token=sl.your-dropbox-token-here
basic_plan=false
Script:
url=file.url
title=file.name
content=file.contents
mimetype=file.mimetype
filetype=file.filetype
filename=file.name
content_length=file.size
last_modified=file.client_modified
Crawling Dropbox Paper Documents
Parameters:
access_token=sl.your-dropbox-token-here
basic_plan=false
Script:
title=paper.title
content=paper.contents
url=paper.url
mimetype=paper.mimetype
filetype=paper.filetype
Troubleshooting
Authentication Errors
Symptom: Invalid access token or 401 Unauthorized
Check:
Verify access token is correctly copied
Verify token has not expired (use long-lived tokens)
Verify required permissions are granted in Dropbox App Console
Verify app is not disabled
Cannot Retrieve Files
Symptom: Crawl succeeds but 0 files
Check:
Verify app’s “Access type” is appropriate:
“Full Dropbox”: Can access entire Dropbox
“App folder”: Can only access specific folder
Verify required permissions are granted:
files.metadata.readfiles.content.readsharing.read
Verify files exist in Dropbox account
API Rate Limit Errors
Symptom: 429 Too Many Requests error
Resolution:
For Basic plan, set
basic_plan=trueIncrease crawl interval
Use multiple access tokens for load distribution
Reference Information
Data Store Connector Overview - Data Store Connector Overview
Box Connector - Box Connector
Google Workspace Connector - Google Workspace Connector
Data Store Crawling - Data Store Configuration Guide