Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
Ruben C.8
9 years agoNew member | Level 1
trying to upload many pictures from ios device to dropbox folder using swift
so i have a list in swift of a bunch of URL from pictures saved in a folder with in the ios device. what happens is that i want to upload all those pictures to a folder and when i do it i get some pictures and not all. im using a loop to do go through every URL and uploading them one by one with in the loop.
sometimes i get an http error. i think this is happening because too many files are being uploaded at the same time. but i dont know how to solve this problem. any suggestions please. i would really appreciated.
3 Replies
Replies have been turned off for this discussion
- Greg-DB9 years ago
Dropbox Community Moderator
[Cross-linking for reference: https://stackoverflow.com/questions/35487266/trying-to-upload-many-pictures-from-ios-device-to-dropbox-folder-using-swift ]
As recommended on your StackOverflow post, it may help to limit how many requests you make at the same time.
In any case though, you can check the error you're getting for more information, e.g., using something like:
case .HTTPError(let code, let message, let requestId): print("HTTPError[\(requestId)]: \(code): \(message)") - Ruben C.89 years agoNew member | Level 1
is there a way of limiting how many request i do at the same time within the dropbox api?
- Greg-DB9 years ago
Dropbox Community Moderator
That's something you could manage in your app's logic, by controlling when you make API calls, e.g., when you call the upload method.
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!