Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Div
classconfluenceTableSmall

Property

Mandatory

Description

uploadMode

true

add or force this option specifies how a file should be saved on dropbox:
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.

localPath

true

Folder or file to upload on Dropbox from the local filesystem .

remotePath

false

Folder destination on Dropbox. If the property is not set, the component will upload the file on a remote path equal to the local path.

Note: You can only omit remotePath if you are under Linux/Unix and only is localPath is absolute. With Windows or without an absolute
localPath you may run into an exception like the following:

"Caused by: java.lang.IllegalArgumentException: 'path': bad path: must start with "/": "C:/My/File" 
OR  
"Caused by: java.lang.IllegalArgumentException: 'path': bad path: must start with "/": "MyFile""

Samples

from("direct:start").to("dropbox://put?accessToken=XXX&clientIdentifier=XXX&uploadMode=add&localPath=/root/folder1").to("mock:result");

...