Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
mehulvadodariya
6 years agoNew member | Level 2
Files/Folder chooser download files
Hello I had used Dropbox chooser (https://www.dropbox.com/developers/chooser) in my project and it's working correctly. As per my project requirement, I want to download files from the chosen dir...
Greg-DB
Dropbox Community Moderator
6 years agoIf you received a shared link for a folder from the Dropbox Chooser, which would look like "https://www.dropbox.com/sh/...", you can then list the contents of that shared link using the Dropbox API, via the /2/files/list_folder[/continue] endpoints. You should supply the shared link as the "shared_link" parameter, and use the empty string "" as the value for the "path" parameter to list the contents of the root of the linked folder. (You can repeat with paths relative to that folder root to get nested folders, if desired.)
From there, once you know the paths of the contents, based on the result of the above call(s), you can then download the file(s).
If you are connected to the same account as the one that owns the shared link, you can use /2/files/download to download files using the paths (i.e., 'path_lower') returned by /2/files/list_folder[/continue].
If you are not connected to the same account as the one that owns the shared link, you can use /2/sharing/get_shared_link_file to download files using paths relative to the root of the linked folder.
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!