Upload a file to Dropbox.
type: "io.kestra.plugin.dropbox.files.Upload"Examples
Upload a file from Kestra's internal storage to Dropbox.
id: dropbox_upload_file
namespace: company.team
tasks:
- id: create_file_to_upload
type: io.kestra.plugin.core.storage.Write
content: "This is the content of the file to be uploaded."
- id: upload_to_dropbox
type: io.kestra.plugin.dropbox.files.Upload
accessToken: "{{ secrets.DROPBOX_ACCESS_TOKEN }}"
from: "{{ outputs.create_file_to_upload.uri }}" # URI from previous task
to: "/kestra_uploads/my_file.txt"
mode: "OVERWRITE"
autorename: false
Properties
accessToken *Requiredstring
Dropbox access token.
from *RequiredNon-dynamicobject
The source URI of the file in Kestra's internal storage.
Can be a Kestra URI as a string (e.g., '') or a URI object.
to *Requiredstring
The destination path in Dropbox where the file should be uploaded.
Must start with a '/'. Example: /my_folder/my_uploaded_file.txt.
autorename booleanstring
falseIf there's a conflict, have the Dropbox server try to autorename the file.
For example, appending (1) or (2). Effective only if mode is ADD.
mode string
ADDSelects what to do if a file already exists at the destination path.
ADD: Do not overwrite, add the new file with a suffix (e.g., file (1).txt).
OVERWRITE: Overwrite the existing file.
Outputs
metadata FileMetadata
The metadata of the uploaded file from Dropbox.
Definitions
com.dropbox.core.v2.files.FileLockMetadata
created string
date-timeisLockholder boolean
lockholderAccountId string
lockholderName string
com.dropbox.core.v2.files.MediaInfo
metadataValue MediaMetadata
com.dropbox.core.v2.files.FileMetadata
clientModified string
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
date-time