Claudio Miranda created CAMEL-14007:
---------------------------------------
Summary: Expose BoxFolder.canUpload to let user check if a file
can be uploaded
Key: CAMEL-14007
URL: https://issues.apache.org/jira/browse/CAMEL-14007
Project: Camel
Issue Type: New Feature
Components: camel-box
Reporter: Claudio Miranda
The upload doesn't support to upload a file with an already existing file name,
there is no overwrite parameter.If the user uploads a file and the name already
exists, it throws an error.
If there is a file with a given name, it should upload a new version of the
given file {{uploadNewFileVersion}} and pass the {{fileId}} parameter.
There is a {{BoxFolder.canUpload}} method that check a file can be uploaded,
this way the user can get a feedback and then call {{upload}} or
{{uploadNewFileVersion}}.
[https://developer.box.com/reference#preflight-check]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)