We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
SneYellow46
4 years agoExplorer | Level 4
File upload to dropbox timeout/pauses after certain time. Objective c SDK for dropbox.
Hi,
We have an iOS objective c app with dropbox sdk integrated.
The app uploads large number of photos/files from local app storage to dropbox folder.
When we start the upload process it upload...
SneYellow46
4 years agoExplorer | Level 4
Greg-DB , we have a system where in we upload almost 100-150 images/files at a time.
With regards to error message, we sometimes get upload timeout from dropbox and sometimes it just pauses without going to error block.
So not really sure what is causing the issue. dropbox sdk has mentioned in the documentation that iOS wont stop the upload/download process and there is no timeout.
Greg-DB
Dropbox Community Moderator
4 years agoUploading 100-150 files at the same may exhaust the system or network connection, as each one requires its own HTTPS request. I recommend limiting how many you perform simultaneously. You may want to experiment a bit to see what a good limit is for your scenario/environment.
- SneYellow464 years agoExplorer | Level 4
Hi Greg-DB , I tested the app several times.
As per my investigation the issue is it goes into error block for few upload requires(out of all) with timeout error when trying to upload so many files in a loop at once.
Is there any solution provide by Dropbox SDK for this other than limiting the number of files/requests to upload at a time?
Let me know soon.
Thanks,
- Greg-DB4 years ago
Dropbox Community Moderator
The Dropbox Objective-C SDK does offer a 'batchUploadFiles' method that you may want to use instead: https://github.com/dropbox/dropbox-sdk-obj-c#upload-style-request
- Здравко4 years agoLegendary | Level 20
Hi SneYellow46,
Key moment, when multiple uploads are performing simultaneous, is high probability different uploads to stuck on catching GIL (leading to issues). You can decrease such probability as make upload itself and attach file to the folder tree (only the attach actually needs GIL catch) in 2 different steps, so many uploads can happen simultaneous without risk for conflict and finalization of all files can happen at once. 😉
Hope this helps.
- SneYellow464 years agoExplorer | Level 4
Hi Greg-DB , I tried the Batch method before and it still goes to timeout.
Здравко , thanks for the advise but this approach isn't feasible for our scenario.
I guess we need to handle this from our end with our own logic.
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!