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
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,
Здравко
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.
- Здравко4 years agoLegendary | Level 20
SneYellow46 wrote:..., thanks for the advise but this approach isn't feasible for our scenario. ...
🤔🤷 Why? 🧐
SneYellow46 wrote:...
I guess we need to handle this from our end with our own logic.
What kind of logic is in use currently and is something prevent it to be used further?
Every upload is performed on 2 steps (as I mentioned) - actual upload and attach to directory tree. The way you are using performs both steps at once. This is convenient for single (or few) upload. For many (and/or big) files alternatives can be useful. In all cases upload is performed in the same way, just different way of organizing.
- SneYellow464 years agoExplorer | Level 4
Здравко , So how should be the upload code for iOS objective c to dropbox api?
currently I am using the above in loop for multiple files.
We need files(not as another folder) to be uploaded in a specific folder in dropbox. These files are processed by another application from there.
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!