Forum Discussion

raziel79's avatar
raziel79
Helpful | Level 6
7 years ago

download folder and avoid time to make zip with JS sdk

Hi all,

i am working on wrapper for dropbox and i need to select all files in a folder and download as zip without waiting for zip creating in background with JS SDK. fileDownloadZip wait for zip make but is not what i need

Any ideas?

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

    The Dropbox JavaScript SDK doesn't offer a way to work around this unfortunately; the download result is only returned once the response is complete. I'll send this along as a feature request, but I can't promise if/when a way to do this would be implemented.

    That being the case, you may want to look into streaming from the /2/files/download_zip endpoint itself, without using the SDK.

    • raziel79's avatar
      raziel79
      Helpful | Level 6

      Thx Greg, can i use PHP sdk for this? send request to server php endpoint, process with php and return a stream?

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,950 PostsLatest Activity: 2 days ago
351 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!