Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
pottmi
8 years agoExplorer | Level 4
Detecting Failure in App for Full dropbox
We have an iPhone app that is configured to upload files to dropbox.
Our dropbox account ran out of space, but the upload from the app finished without error message so we did not know the acco...
Steve L.26
8 years agoNew member | Level 2
Hijacking this thread for a moment, I've been using the [client.fileRoutes batchUploadFiles] method from https://github.com/dropbox/dropbox-sdk-obj-c and I can't see how to get at the 409 error response.
In the response block both finishBatchRouteError and finishBatchRequestError are nil and [fileUrlsToRequestErrors count] = 0.
Also iterating over the fileUrlsToBatchResultEntries and checking the
DBFILESUploadSessionFinishBatchResultEntry values I only see DBFILESUploadSessionFinishBatchResultEntryFailure.
Is there any way to check for a 409 error response when using this API?
Greg-DB
Dropbox Community Moderator
8 years agoSteve L.26 The batchUploadFiles method isn't a direct API call, but rather a convenience method built to wrap the various upload sessions calls, so it doesn't directly expose the API errors. It instead exposes different error cases via the different values in the overall response block that you mentioned.
If you want more control over the error handling, you can use the upload sessions calls directly. The SDK is open-source, so you can see and borrow from the batchUploadFiles implemantation here if you want.
About Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!