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 is useful for automating Dropbox workflows such as creating folders, copying or moving files and folders, deleting items, uploading and downloading files, listing folder contents, and running custom queries.

Practical examples include:

  • Automatically creating project folders in Dropbox when new projects start.
  • Uploading generated reports or backups to specific Dropbox paths.
  • Moving or organizing files within Dropbox based on workflow logic.
  • Downloading files from Dropbox for further processing in n8n.

Properties

Name Meaning
Path The path of the file or folder in Dropbox to operate on. Required for all supported operations except the query operation.
Operation The action to perform. For this node, the relevant operation is Create a Folder which creates a new folder at the specified path. Other available operations (not detailed here) include copyFile, deleteFile, downloadFile, moveFile, uploadFile, copyFolder, deleteFolder, listFolder, moveFolder, and query.
Destination Path (Not used for Create a Folder) The target path for move or copy operations.
Content (Base64) (Not used for Create a Folder) Base64 encoded content for file uploads.
Query Parameters (JSON) (Not used for Create a Folder) Raw JSON body for custom query operations.

Output

The output JSON structure for the "Create a Folder" operation contains the response from Dropbox's API for folder creation. Typically, it includes metadata about the newly created folder such as its path and ID.

Example output JSON snippet:

{
  "metadata": {
    ".tag": "folder",
    "name": "NewFolder",
    "path_lower": "/newfolder",
    "path_display": "/NewFolder",
    "id": "id:examplefolderid"
  }
}

No binary data is output for the create folder operation.

Dependencies

  • Requires an API key credential for authenticating with the Dropbox proxy Cloudflare worker.
  • The node expects the credentials to provide a url (the worker endpoint) and an accessToken (Dropbox access token).
  • No other external dependencies are required.

Troubleshooting

  • Missing Credentials Error: If the worker URL or access token is missing, the node will throw an error indicating missing credentials. Ensure that the API key credential is properly configured with both values.
  • Invalid Path: Providing an invalid or malformed path may cause Dropbox API errors. Verify the path format matches Dropbox requirements (e.g., starts with /).
  • Folder Already Exists: Attempting to create a folder at a path where a folder already exists may result in an error. Consider handling such cases or enabling autorename if supported.
  • Unsupported Operation: If an unsupported operation is selected, the node throws an error specifying the unsupported operation.

Links and References

Discussion