Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
dredknight
9 years agoExplorer | Level 4
Access public shared files without authentication
Dear community, I was wondering if it is possible to use a the ruby dropbox API to access and download publically shared files without authentication? You can do that from the web as long as y...
- 9 years agoIf you have a shared link for the file, the simplest way to download it is to modify the URL parameter(s) as shown here:
https://www.dropbox.com/help/desktop-web/force-download
You can then download from the modified link.
Otherwise, if you do want to use the API, you can use the /2/sharing/get_shared_link_file endpoint:
https://www.dropbox.com/developers/documentation/http/documentation#sharing-get_shared_link_file
Greg-DB
Dropbox Community Moderator
9 years agoHow does it fail exactly? Can you share your code?
One thing to be aware of is that the dl=1 link will return a redirect first, so make sure your HTTP client will follow redirects.
One thing to be aware of is that the dl=1 link will return a redirect first, so make sure your HTTP client will follow redirects.
dredknight
9 years agoExplorer | Level 4
Hello Greg,
Your answer is correct, it is me who is faulty.
It seems the dl=1 solution is not a direct link but when requested it sends a response with the direct link.
I had to work this over with ruby so I can tell ruby to get the request and THEN use it as download source.
Thank you for the help and dedication!
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
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!