Learn how to make the most out of the Dropbox Community here 💙!
Forum Discussion
Андрей Г.2
5 years agoExplorer | Level 4
download_zip
I have code that creates a zip archive folder from dropbox on the server https://monosnap.com/file/PtMN0G6kepdzGaKa0CfOtj7htL4YUa please tell me if I can immediately download this archive to the use...
Андрей Г.2
5 years agoExplorer | Level 4
Greg-DB
Dropbox Staff
5 years agoThat link is also not working, but in any case, I imagine you're referring to using the /2/files/download_zip endpoint. That returns the zip data for the requested folder in the request body directly. If you want to then return that data directly to the browser accessing your server, you should refer to the documentation for your web framework, etc., for information on how to do so.
- Андрей Г.25 years agoExplorer | Level 4
- Greg-DB5 years ago
Dropbox Staff
That link is working. The endpoint URL is cut off, but it looks like you are referring to using /2/files/download_zip, and you're using curl to call it. I see you're setting 'CURLOPT_FILE' to send the result to a local file. You may want to use different curl options to put the result in memory instead of the local filesystem, and then pass that down to the browser using whatever web framework mechanism is available to you.
The curl library and whatever web framework you're using, if any, aren't made by Dropbox though so we can't provide support for those. I recommend referring to the documentation for those for information on configuring them.
About Discuss Dropbox Developer & API
Make connections with other developers810 PostsLatest Activity: 2 days ago
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!