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
dredknight
8 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...
- 8 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
8 years agoDropbox Staff
If 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
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
- dredknight8 years agoExplorer | Level 4
Oh.. this DL=1 is just what I needed! Thank you so much :)!
P.S.
Unfortunately when I put it as a download link in ruby it still does not work even though it works through brower. :/- Greg-DB8 years agoDropbox StaffHow 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.- dredknight8 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.
5,910 PostsLatest Activity: 4 days agoIf 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!