Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
Gordon Funk
5 years agoHelpful | Level 5
Create download zip package
Hello
I'm accessing the API via a PHP library. I want to do two things, and need to know if its possible:
1) We have files in 2 folders that I would like to be able to have our clients do...
Greg-DB
Dropbox Community Moderator
5 years ago1) To download any specific file, you can use the /2/files/download endpoint, and to download any specific folder and its contents as a zip, you can use the /2/files/download_zip endpoint. These will require one API call per file or folder, respectively though. There isn't a way to bundle multiple different files or folders into a single API call. (Depending on your setup/environment you may be able to perform the multiple calls necessary and handle the results automatically in your UI, but I can't provide guidance on that aspect of your app.)
2) To upload a file, you can use the /2/files/upload endpoint (or upload sessions for large files). That's not something that gets "embedded" in your app exactly, but rather just another API call that your app can make. From your description, it doesn't sound like any of the Dropbox pre-built components (the Dropbox Chooser, Saver, or Embedder) do quite what you need but please feel free to elaborate and I'll be happy to pass this on as a feature request if not.
About Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.
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!