We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Steve L.
9 years agoHelpful | Level 6
V2 Obj-C equivalent to [DBFilesystem sharedFilesystem].status.anyInProgress
Is there a V2 Obj-C equivalent to the Sync API [DBFilesystem sharedFilesystem].status.anyInProgress ?
That is, how can I test if there are uploads in progress after fileRoutes batchUploadFiles...
Steve L.
9 years agoHelpful | Level 6
Thanks Greg.
The specific situation I'm trying to accommodate is where a user repeatedly changes a file (e.g. editing an online document or cropping a photo). Is it sufficient to just call fileRoutes batchUploadFiles repeatedly and the document at Dropbox reflects the last invocation? Or do I need to add logic to queue repeated updates to the same document?
Greg-DB
Dropbox Community Moderator
9 years agoThe exact behavior in that case would depend on which of the calls succeed first, and what write mode you're using, so it would be safer to queue these up in order.
- Steve L.9 years agoHelpful | Level 6
The asynchronous and non-deterministic nature of the API will make that (ahem) "interesting".
One final question: do you know of any situation (apart from the app terminating) where the responseBlock in a fileRoutes batchUploadFiles API call will fail to run?
- Greg-DB9 years ago
Dropbox Community Moderator
There are some complications around background sessions. You can find more information about that here:
https://github.com/dropbox/dropbox-sdk-obj-c#note-about-background-sessions- Stephen C.149 years ago
Dropbox Staff
Steve, an `uploadsInProgress` method has been added to the batch upload logic in the latest version of the SDK. Let us know if you have any problems with it.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
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!