You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

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!