Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
Arron G.
9 years agoNew member | Level 1
Get all files in shared link loder
I'm looking to use the v2 api to download the contents of a shared folder from a link like this: https://www.dropbox.com/sh/[some_junk]/[some_other_junk]?dl=0 this link is not necessarily gener...
jyotinarang
7 years agoExplorer | Level 4
Hi Greg,
I was successful in listing the folders and files from the shared folder, however, I am still having trouble downloading data. The meta-data shows the fields 'path_lower' and 'path_display' to be empty. Could you suggest if I can download the files after listing the entries?
Thanks
Jyoti
Greg-DB
Dropbox Community Moderator
7 years agojyotinarang It sounds like you're calling list_folder with a shared link owned by a different user than the one for the access token you're using. In that case, the path values won't be included, but I'll pass this along as a feature request.
That means you'll need to manually build the relative path from the 'name' value. E.g., if the returned metadata entry for the file you want in the root of the folder is "test.txt", you would pass "/test.txt" to get_shared_link_file.
- jyotinarang7 years agoExplorer | Level 4
Thanks Greg for the information. I can see that the function get_shared_link_file() expects a url as parameter. However, this value is not available to me when I get information about the folder. How do I construct a url from just the name?Even with relative paths, I don't see a way to construct the url of the files within the main folder.
Thanks
Jyoti
- Greg-DB7 years ago
Dropbox Community Moderator
jyotinarang Apologies, this thread was about originally about getting the files when working from a shared link for a folder, so I assumed that's the scenario you're working on as well, in which case the 'url' would just be the original shared link for the folder.
If you don't have the link, it sounds like you may be referring to a different scenario. In that case, please open a new thread with the details and code you have so far so we can help with it: https://www.dropboxforum.com/t5/forums/postpage/board-id/101000014
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!