Versions Compared

Key

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

...

Where operation is the specific action (typically is a CRUD action) to perform on Dropbox remote folder.

...

Operations

Div
classconfluenceTableSmall

Operation

Description

del

deletes files or directories on Dropbox

get

download files from Dropbox

move

move files from folders on Dropbox

put

upload files on Dropbox

search

search files on Dropbox based on string queries

...

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");

...

Div
classconfluenceTableSmall

Object type

Description

List<DbxEntry>

list of file path founded. For more information on this object refer to Dropbox documentation,

http://dropbox.github.io/dropbox-sdk-java/api-docs/v1.7.x/com/dropbox/core/DbxEntry.html