Dropbox Proxy

Communicates with Dropbox via a Cloudflare worker

Overview

This node acts as a proxy to interact with Dropbox via a Cloudflare worker, enabling various file and folder operations on a Dropbox account. It supports actions such as deleting files or folders, copying, moving, uploading, downloading files, creating folders, listing folder contents, and running custom queries.

A common use case is automating Dropbox file management workflows within n8n, for example:

  • Automatically deleting files after processing them.
  • Uploading generated reports to a specific Dropbox folder.
  • Moving or copying files between folders based on workflow logic.
  • Downloading files from Dropbox for further processing in the workflow.

Properties

Name Meaning
Operation The action to perform. Options include: Copy a File, Copy a Folder, Create a Folder, Delete a File, Delete a Folder, Download a File, List a Folder, Move a File, Move a Folder, Query, Upload a File.
Path The path of the file or folder on Dropbox to operate on. Required for most operations.
Destination Path The target path used for move or copy operations.
Content (Base64) Base64 encoded content of the file to upload (required for upload operation).
Query Parameters (JSON) Raw JSON object sent as the body for the Query operation (used for advanced queries).

Output

The node outputs JSON data representing the response from Dropbox API for the performed operation. The structure varies depending on the operation:

  • For delete, copy, move, create folder, and list folder operations, the output contains metadata about the affected files/folders or confirmation of success.
  • For download operations, the node outputs binary data containing the file content under the binary.data field, along with JSON metadata indicating success and the file path.
  • For upload operations, the output includes JSON metadata about the uploaded file.
  • For query operations, the output reflects the raw JSON response from the Dropbox API.

Dependencies

  • Requires an API key credential to authenticate requests to the Dropbox proxy service hosted on a Cloudflare worker.
  • The node expects two credential properties: a URL for the worker endpoint and an access token for authorization.
  • No other external dependencies are required beyond standard HTTP requests.

Troubleshooting

  • Missing credentials error: If the worker URL or access token is not provided or invalid, the node will throw an error indicating missing credentials. Ensure that both are correctly configured.
  • File content required for upload: When performing an upload operation, if the Base64 file content is empty or missing, the node throws an error. Provide valid Base64 encoded content.
  • Unsupported operation error: If an unsupported operation name is specified, the node will throw an error. Verify the operation name matches one of the supported options.
  • HTTP request failures: Errors from the Dropbox API (e.g., invalid paths, permission issues) will be propagated as node errors. Check the error message for details and verify Dropbox permissions and paths.

Links and References

Discussion