...
Wiki Markup |
---|
{div:class=confluenceTableSmall} || 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. | {div} |
Samples
from("direct:start").to("dropbox://getput?accessToken=XXX&clientIdentifier=XXX&uploadMode=add&remotePathlocalPath=/root/folder1/file1.tar.gz").to("file:///home/kermit/?fileName=file1.tar.gzmock:result");
from("direct:start").to("dropbox://getput?accessToken=XXX&clientIdentifier=XXX&remotePathuploadMode=add&localPath=/root/folder1").to("mock:result");from("dropbox://get?accessToken=XXX&clientIdentifier=XXX&remotePath=/root/folder1folder2").to("file:///home/kermit/mock:result");
Result Message Headers
...
Wiki Markup |
---|
{div:class=confluenceTableSmall} || Property || Value || | {{DOWNLOADEDUPLOADED_FILE}} | in case of single file downloadupload, path of the remote filepath downloadeduploaded | | {{DOWNLOADEDUPLOADED_FILES}} | in case of multiple files downloadupload, pathstring ofwith the remote filespaths downloadeduploaded | {div} |
Result Message Body
...
Wiki Markup |
---|
{div:class=confluenceTableSmall} || Object type || Description || | {{ByteArrayOutputStreamString}} | in case of single file downloadupload, streamresult representingof the file downloaded upload operation, OK or KO | | {{Map<String, ByteArrayOutputStream>DropboxResultCode>}} | in case of multiple files downloadupload, a map with as key the path of the remote file downloadeduploaded and as value the streamresult representingof the file downloadedupload operation, OK or KO | {div} |