Dropbox

App · File Storage · 5 actions · 1 trigger

Upload, download, and organize content in Dropbox.

Triggers

Start a workflow when something happens in Dropbox. See how triggers work.

Dropbox New File

Triggers when a new file is added to Dropbox

Filters

Narrow which events start a run.

folder_path
name_pattern

Event fields

What a run starts with. Later steps read each field with an @ reference.

idtext
nametext
path_displaytext
path_lowertext

Actions

ActionWhat it does
Create Dropbox folderCreate a new folder in Dropbox.
Delete Dropbox file or folderDelete a file or folder from Dropbox.
Download file from DropboxDownload a file from Dropbox and save it to a location you choose.
List Dropbox folder contentsList the contents of a Dropbox folder.
Upload file to DropboxUpload a file to Dropbox at the location you choose.

Create Dropbox folder

Create a new folder in Dropbox.

Inputs

Folder pathfolder_pathtextRequired
The path for the new folder (e.g., /Documents/NewFolder).
Rename automaticallyautorenametrue/false
Automatically rename if a folder with the same name exists.Default: false.

Outputs

Response envelope; the payload is in the "path" field.

pathtext
The display path of the created folder.
statustext
Example output
{
  "path": "/Documents/NewFolder",
  "status": "success"
}

Delete Dropbox file or folder

Delete a file or folder from Dropbox.

Inputs

File or folder pathtarget_pathtextRequired
The path of the file or folder to delete, for example /folder/file.txt.

Outputs

Response envelope; the payload is in the "deleted" field.

deletedtrue/false
True if the deletion was successful.
statustext
Example output
{
  "deleted": true,
  "status": "success"
}

Download file from Dropbox

Download a file from Dropbox and save it to a location you choose.

Inputs

Dropbox pathdropbox_pathtextRequired
The Dropbox path of the file to download.
Destination pathdestination_pathtext
Where to save the downloaded file. If left blank, a temporary folder is used.

Outputs

Response envelope; the payload is in the "path" field.

pathtext
The local path where the file was saved.
statustext
Example output
{
  "path": "/tmp/downloaded_file.txt",
  "status": "success"
}

List Dropbox folder contents

List the contents of a Dropbox folder.

Inputs

Folder pathfolder_pathtext
The Dropbox folder to list. Leave blank for the top level of your Dropbox.
Include subfoldersrecursivetrue/false
Set to true to also include files inside subfolders.Default: false.
Limitlimitnumber
Maximum number of items to return (default 200).

Outputs

Response envelope; the payload is in the "entries" field.

entrieslist
List of file and folder paths in the directory.
statustext
Example output
{
  "entries": [
    "/Documents/file1.txt",
    "/Documents/file2.pdf",
    "/Documents/Subfolder"
  ],
  "status": "success"
}

Upload file to Dropbox

Upload a file to Dropbox at the location you choose.

Inputs

File to uploadfile_pathtextRequired
The file to upload to Dropbox.
Dropbox pathdropbox_pathtextRequired
The destination path in Dropbox (e.g., /folder/file.txt).
Rename automaticallyautorenametrue/false
Automatically rename the file if one with the same name already exists.Default: true.

Outputs

Response envelope; the payload is in the "path" field.

pathtext
The display path of the uploaded file in Dropbox.
statustext
Example output
{
  "path": "/Documents/uploaded_file.txt",
  "status": "success"
}

On this page