Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
nive
3 years agoExplorer | Level 4
Downloading a zip file using Api doesnt work
Hello Team ,
I have a "App folder" created and I try to list all the files inside the folder . From the response received , I grep for a particular zip file and download the zip file using "/2/...
Здравко
3 years agoLegendary | Level 20
nive wrote:... It does download the zip file ...
Hi nive,
Wow...😯 Really? That would be really surprising. 🤔
nive wrote:... I grep for a particular zip file and download the zip file using "/2/files/download_zip" endpoint . ...
If you take a look on /2/files/download_zip's documentation:
Download a folder from the user's Dropbox, as a zip file. The folder must be less than 20 GB in size and any single file within must be less than 4 GB in size. The resulting zip must have fewer than 10,000 total file and folder entries, including the top level folder. The input cannot be a single file. ...
Why do you decided that you need to use exactly this API access point? Let's recall the zip file is a... file! It's NOT a folder. 🙂
By the way, when you say that particular thing is done ("It does download the zip file" in particular), better check what has been done actually and is there some error in meantime! Actually you don't check for error at all and that's where you confusion comes from. 😉 You got - "error_summary": "path/not_folder/.." for sure. Does this text look like a zip file content? 😁
Hope this clarifies matter and gives direction.
PS: By default curl doesn't report server side errors as a returned status. To make curl respond with corresponding status (that you can check) use -f flag.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
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, Facebook or Instagram.
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!