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: "{{ secrets.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: "{{ secrets.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 FileMetadata
The metadata of the downloaded file from Dropbox.
uri string
Format
uriThe URI of the downloaded file in Kestra's internal storage.
Definitions
com.dropbox.core.v2.files.FileLockMetadata
created string
Format
date-timeisLockholder boolean
lockholderAccountId string
lockholderName string
com.dropbox.core.v2.files.MediaInfo
metadataValue MediaMetadata
com.dropbox.core.v2.files.FileMetadata
clientModified string
Format
date-timecontentHash string
exportInfo ExportInfo
fileLockInfo FileLockMetadata
id string
isDownloadable boolean
mediaInfo MediaInfo
name string
pathDisplay string
pathLower string
previewUrl string
rev string
serverModified string
Format
date-timesharingInfo FileSharingInfo
size integer
symlinkInfo SymlinkInfo
com.dropbox.core.v2.files.GpsCoordinates
latitude number
longitude number
com.dropbox.core.v2.fileproperties.PropertyField
name string
value string
com.dropbox.core.v2.files.Dimensions
height integer
width integer
com.dropbox.core.v2.files.FileSharingInfo
modifiedBy string
readOnly boolean
com.dropbox.core.v2.files.ExportInfo
exportAs string
exportOptions array
SubType string