[
https://issues.apache.org/jira/browse/CAMEL-14007?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrea Cosentino resolved CAMEL-14007.
--------------------------------------
Resolution: Fixed
> 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 Martella
> Assignee: Andrea Cosentino
> Priority: Major
> Fix For: 3.0.0, 3.0.0.RC2
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> 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)