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 copying, moving, deleting, uploading, downloading files and folders, creating folders, listing folder contents, and running custom queries.

A common use case is automating Dropbox file management workflows without directly handling Dropbox API complexities. For example, you can automate backing up files by copying or moving them between folders, clean up storage by deleting old files or folders, or upload new content programmatically.

Specifically, the "Delete a Folder" operation deletes a specified folder path from Dropbox, which is useful for removing unwanted directories in an automated workflow.

Properties

Name Meaning
Path The path of the file or folder to operate on. For "Delete a Folder," this is the folder path to delete.
Operation The action to perform. For this context: "Delete a Folder". Other supported operations include copyFile, copyFolder, createFolder, deleteFile, downloadFile, listFolder, moveFile, moveFolder, query, uploadFile.
Destination Path (For copy or move operations) The target path where the file or folder will be copied or moved. Not used for delete operations.
Content (Base64) (For uploadFile operation) The Base64-encoded content of the file to upload. Not used for delete operations.
Query Parameters (JSON) (For query operation) Raw JSON object sent as body for advanced queries. Not used for delete operations.

Output

The output is an array of items, each containing a json property with the response from Dropbox API for the performed operation.

For the "Delete a Folder" operation, the output JSON contains the result of the deletion request, typically including metadata about the deleted folder or confirmation of success.

No binary data is output for the delete operation.

Example output snippet for deleteFolder:

{
  "metadata": {
    ".tag": "folder",
    "name": "folderName",
    "path_lower": "/foldername",
    "id": "id:example"
  }
}

Dependencies

  • Requires an API key credential for authenticating with the Dropbox proxy Cloudflare worker.
  • The node expects two credential properties: a worker URL and an access token.
  • No other external dependencies are required beyond the configured credentials and network access to the proxy service.

Troubleshooting

  • Missing Credentials: If the worker URL or access token is not set, the node throws an error indicating missing credentials. Ensure these are properly configured.
  • Invalid Path: Providing an invalid or non-existent folder path may cause Dropbox API errors. Verify the folder path exists before attempting deletion.
  • Unsupported Operation: Attempting an unsupported operation value results in an error. Confirm the operation name is correct.
  • Empty Required Fields: For deleteFolder, the "Path" property is required. Omitting it causes an error.
  • API Errors: Any HTTP or API errors from Dropbox are wrapped and thrown as node errors. Check the error message for details like permission issues or rate limits.

Links and References

Discussion