We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
jimbobbles
2 years agoExplorer | Level 3
Is there a Java SDK equivalent of Swifty Dropbox batchUploadFiles function?
I just stumbled across batchUploadFiles in CustomRoutes.swift - it seems to be undocumented, but is an extremely useful high-level function which simplifies an awful lot of complex code required to do a batch upload (I wish I found this 3 days ago!). As it's undocumented I was wondering if there's a reason for that (eg is it unsafe or out of date or some other reason it shouldn't be used), and if there is an equivalent for the Java SDK hiding somewhere?
Thanks!
2 Replies
- Greg-DB2 years ago
Dropbox Community Moderator
You can use batchUploadFiles if that works for your use case, and I'll ask the team to add documentation for that. You can find some usage of it in the tests here.
The Java SDK doesn't have an equivalent unfortunately; I'll pass this along as a feature request but I can't promise if or when that might be implemented.
- jimbobbles2 years agoExplorer | Level 3
That would be great, thank you. I think an equivalent high-level batch upload function for the Java SDK would be a valuable time saver for future developers, and would serve as a great template for those looking for some example code if they wanted to write their own - I've found batch uploading manually is quite complex!
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!