dropbox sink Dropbox Sink

Provided by: "Apache Software Foundation"

Support Level for this Kamelet is: "Stable"

Upload Files to Dropbox.

The Kamelet expects the following headers to be set:

  • file / ce-file: as the file name to upload

If the header is not set, the exchange ID is used as file name.

Configuration Options

The following table summarizes the configuration options available for the dropbox-sink Kamelet:

Property Name Description Type Default Example

accessToken

Dropbox Access Token

Required The access Token to use to access Dropbox.

string

clientIdentifier

Client Identifier

Required Dropbox App client Identifier.

string

remotePath

Remote Path

Required Original file or folder to work with.

string

uploadMode

Upload Mode

Required The uploading mode in case a file with the same name exists on Dropbox. Choose add or force. With add, the new file is renamed. With force, the existing file is overwritten.

string

add

Dependencies

At runtime, the dropbox-sink Kamelet relies upon the presence of the following dependencies:

  • camel:core

  • camel:dropbox

  • camel:kamelet

Camel JBang usage

Prerequisites

  • You’ve installed JBang.

  • You have executed the following command:

jbang app install camel@apache/camel

Supposing you have a file named route.yaml with this content:

- route:
    from:
      uri: "kamelet:timer-source"
      parameters:
        period: 10000
        message: 'test'
      steps:
        - to:
            uri: "kamelet:dropbox-sink"

You can now run it directly through the following command

camel run route.yaml