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 won’t be set the exchange ID will be 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 |
---|---|---|---|---|---|
Dropbox Access Token | Required The access Token to use to access Dropbox. | string | |||
Client Identifier | Required Dropbox App client Identifier. | string | |||
Remote Path | Required Original file or folder to work with. | string | |||
Upload Mode | Required Which mode to upload. in case of add the new file will be renamed if a file with the same name already exists on dropbox. in case of force if a file with the same name already exists on dropbox, this will be overwritten. The value can be one of add, force. | 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