Skip to main content

Upload files to Dropbox and generate direct download links

Workflow preview

Workflow preview
100%
Upload files to Dropbox and generate direct download links preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

How It Works This sub workflow uploads files to Dropbox and returns a direct download link: Upload file Receives file from parent workflow and uploads to Dropbox Check for existing link Queries Dro...

Best for

  • File Management automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.executeworkflowtrigger, n8n-nodes-base.set, n8n-nodes-base.stickynote, n8n-nodes-base.httprequest, n8n-nodes-base.if, n8n-nodes-base.dropbox, n8n-nodes-base.datatable, n8n-nodes-base.formtrigger

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Anthony.

Original n8n.io source

1.1 Workflow description

Title
Upload files to Dropbox and generate direct download links
Workflow name
Upload files to Dropbox and generate direct download links

How It Works This sub-workflow uploads files to Dropbox and returns a direct download link:

Upload file - Receives file from parent workflow and uploads to Dropbox Check for existing link - Queries Dropbox API to see if a shared link already exists for this file Create or reuse link - If no link exists, creates a new public shared link; otherwise uses existing one Convert to direct link - Transforms Dropbox's standard sharing URL (dropbox.com) into a direct download URL (dl.dropboxusercontent.com) Return URL - Outputs the final direct download link for use in other workflows

Important: File names must be unique, or you'll get links to old files with the same name.

Setup Steps Time estimate: ~25-30 minutes (first time)

Create Dropbox app - Register at https://www.dropbox.com/developers/apps and get App Key + App Secret. Grant "Files and folders" + "Collaboration" permissions Configure OAuth2 credentials - Add Dropbox OAuth2 credentials in n8n (2 places: "Upload a file" and "List Shared Links" nodes). Set redirect URI to your n8n instance

Create data table - Make a table called "cred-Dropbox" with columns: id (value: 1) and token (your access token)

Set up token refresh - Deploy the companion "Dropbox Token Refresher" workflow (referenced but not included as its a paid workflow) to auto-refresh tokens

Customize upload path - Update the path in "Upload a file" node (currently /Automate/N8N/host/)

Test with form - Use the included test workflow to verify everything works

Pro tip: Generate your first access token manually in the Dropbox app console to test uploads before setting up auto-refresh.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - When Executed by Another Workflow

Type / Role
n8n-nodes-base.executeWorkflowTrigger - executeWorkflowTrigger
Config choices
Version 1.1

Block 2 - Normalize Path1

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3

Block 3 - Upload & Path Processing1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Sharing Link Management1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Direct Link Processing1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Dropbox: Create Shared Link

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 7 - If: Link Exists?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2

Block 8 - Extract Existing Link

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3

Block 9 - Dropbox: List Shared Links

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 10 - Rewrite Dropbox Host

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3

Block 11 - Build Direct Link

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3

Block 12 - Final Response

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 13 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Upload a file

Type / Role
n8n-nodes-base.dropbox - dropbox
Config choices
Version 1

Block 15 - Get DropBox access token

Type / Role
n8n-nodes-base.dataTable - dataTable
Config choices
Version 1

Block 16 - Upload File

Type / Role
n8n-nodes-base.formTrigger - formTrigger
Config choices
Version 2.3

Block 17 - Completed

Type / Role
n8n-nodes-base.noOp - noOp
Config choices
Version 1

Block 18 - Call '[SUB] Dropbox upload links'

Type / Role
n8n-nodes-base.executeWorkflow - executeWorkflow
Config choices
Version 1.3

Block 19 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Upload files to Dropbox and generate direct download links
Complexity advanced
Nodes 19
Categories File Management
Author Anthony
Published 29 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/10299/10299.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Upload files to Dropbox and generate direct download links do?

How It Works This sub workflow uploads files to Dropbox and returns a direct download link: Upload file Receives file from parent workflow and uploads to Dropbox Check for existing link Queries Dro...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your File Management use case.