Upload a file to Dropbox.

yaml
type: "io.kestra.plugin.dropbox.files.Upload"

Upload a file from Kestra's internal storage to Dropbox.

yaml
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

Dropbox access token.

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.

The destination path in Dropbox where the file should be uploaded.

Must start with a '/'. Example: /my_folder/my_uploaded_file.txt.

Default false

If 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.

Default ADD

Selects 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.

The metadata of the uploaded file from Dropbox.

Format date-time
Format date-time
SubType
Format date-time
SubType string
Format date-time
SubType