Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
Sameer96
7 years agoExplorer | Level 4
How to download a directory from shareable link using Dropbox API in Python ?
Hi folks,
I want to download the directory and its files from a shareable link programmatically. I cannot find a good approach for that can anyone help me with suggestions?
Thanks
3 Replies
Replies have been turned off for this discussion
- Greg-DB7 years ago
Dropbox Community Moderator
There are two ways you can approach this:
- With the official Dropbox Python SDK, use the method sharing_get_shared_link_file to download the file content from a shared link. Or without the SDK, make the same call to /2/sharing/get_shared_link_file API endpoint itself directly.
- Without using the API/SDK, modify the shared link URL for raw access as documented here, and issue a GET request with your HTTPS client of choice to download the file content directly.
- Sameer967 years agoExplorer | Level 4
Hi Greg,
Thanks a lot for your answer it solved my issue. One more thing can I upload a zip file programmatically to the shared link provided by another user or else I can only download the files from a shared link?
Thanks
- Greg-DB7 years ago
Dropbox Community Moderator
Shared links only provide view/download access. You can't upload to them.
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!