You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
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 directory via API. I can list all the files/subfolders from the chosen directory but I didn't find any way to download any files from the chosen directory and sub-directory using API.
- Greg-DBDropbox Staff
If 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 & Feedback
Find help with the Dropbox API from other developers.5,917 PostsLatest Activity: 5 hours 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!