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

frphotos's avatar
frphotos
Explorer | Level 4
7 years ago

mulitple files upload doesnt work

Hi,

I am currently using Files.UploadAsync to upload files to a folder. However, it is very slow to process if there are a bunch of files.

 

I looked through the documentation and there isn't any method to upload a group or files with just a single call?

 

Below is my code to upload single file

var file = "41b08b49683d4e91be1a5a13c16d502c.jpg";
var folder = "/" + pid  + "/";
var lastpath = folder + file;
var mem = new MemoryStream(File.ReadAllBytes(pathname + filename));
var upload = await dbx.Files.UploadAsync(lastpath, Dropbox.Api.Files.WriteMode.Overwrite.Instance, false, null, false, null, mem);
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff
    That's correct, there isn't a way to upload many files with a single call, but I'll pass this along as a feature request.
    • frphotos's avatar
      frphotos
      Explorer | Level 4

      Thanks Greg. It will be a useful feature and help us save time and bandwidth to be able to upload multiple files to a destinated folder.

       

      Cheers!

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,917 PostsLatest Activity: 24 minutes ago
334 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!