
Download
Download
Download a file from Dropbox.
yaml
type: "io.kestra.plugin.dropbox.files.Download"Examples
Download a file from a specific Dropbox path.
yaml
id: dropbox_download_file
namespace: company.team
tasks:
- id: download_report
type: io.kestra.plugin.dropbox.files.Download
accessToken: "{{ secret('DROPBOX_ACCESS_TOKEN') }}"
from: "/shared_reports/quarterly_report.csv"
Download a file using a path from a previous task's output.
yaml
id: dropbox_download_dynamic_path
namespace: company.team
tasks:
- id: generate_path_file
type: io.kestra.plugin.core.storage.Write
content: "/dynamic/data/{{ flow.startDate }}.json"
# Kestra automatically generates the output URI
- id: download_dynamic_file
type: io.kestra.plugin.dropbox.files.Download
accessToken: "{{ secret('DROPBOX_ACCESS_TOKEN') }}"
from: "{{ outputs.generate_path_file.uri }}" # Reference the generated URI
Properties
accessToken*Requiredstring
Dropbox access token.
from*RequiredNon-dynamicobject
The path of the file to download.
Can be a direct path as a string, or a Kestra internal storage URI (kestra://...) of a file containing the path.
Outputs
metadata
The metadata of the downloaded file from Dropbox.
Definitions
com.dropbox.core.v2.files.FileMetadata
clientModifiedstring
Format
date-timecontentHashstring
exportInfo
com.dropbox.core.v2.files.ExportInfo
exportAsstring
exportOptionsarray
SubTypestring
fileLockInfo
com.dropbox.core.v2.files.FileLockMetadata
createdstring
Format
date-timeisLockholderboolean
lockholderAccountIdstring
lockholderNamestring
hasExplicitSharedMembersboolean
idstring
isDownloadableboolean
mediaInfo
com.dropbox.core.v2.files.MediaInfo
metadataValue
com.dropbox.core.v2.files.MediaMetadata
dimensions
location
timeTakenstring
Format
date-timenamestring
parentSharedFolderIdstring
pathDisplaystring
pathLowerstring
previewUrlstring
propertyGroupsarray
com.dropbox.core.v2.fileproperties.PropertyGroup
fieldsarray
com.dropbox.core.v2.fileproperties.PropertyField
namestring
valuestring
templateIdstring
revstring
serverModifiedstring
Format
date-timesharingInfo
com.dropbox.core.v2.files.FileSharingInfo
modifiedBystring
parentSharedFolderIdstring
readOnlyboolean
sizeinteger
symlinkInfo
com.dropbox.core.v2.files.SymlinkInfo
targetstring
uristring
Format
uriThe URI of the downloaded file in Kestra's internal storage.