We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

Forum Discussion

jimbobbles's avatar
jimbobbles
Explorer | Level 3
4 months ago

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!

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    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.

    • jimbobbles's avatar
      jimbobbles
      Explorer | 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

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,878 PostsLatest Activity: 10 hours ago
326 Following

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 or Facebook.

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!