dropbox / dropbox-sdk-js

The Official Dropbox API V2 SDK for Javascript
https://www.dropbox.com/developers
MIT License
937 stars 352 forks source link

How to upload multiple files in bulk? #778

Open MichaelDeBoey opened 3 years ago

MichaelDeBoey commented 3 years ago

What is your question?

I'm looking for a way to upload about 100 files at once in bulk.

Versions

Additional context

I'm currently having an array of about 100 files that I loop over every day. In each loop, I fetch those files and upload the latest version to Dropbox using the filesUpload method.

I however have to retry uploading already quite fast because I get 429: Too Many Requests errors. Therefore I use the retry_after to set as the delay, but since I'm uploading that many files at once, I keep getting those errors.

All these files are smaller than the 150MB file size limit.

I would like to find a way to upload all these files in batch, without having to retry the upload all the time.

Thanks in advance for your help!

greg-db commented 3 years ago

The Dropbox API unfortunately doesn't offer a way to upload multiple files at once, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.