cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Update: Find information on Dropbox support during COVID-19 here
Close
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

Access public shared files without authentication

Explorer | Level 4

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 you have the URL but I could not find any way to make this possible inside my app.

Any help on how I can make this work will be appreciated !

1 Accepted Solution

Accepted Solutions
Highlighted

Re: Access public shared files without authentication

Dropboxer
Dropboxer
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

View solution in original post

5 Replies 5
Highlighted

Re: Access public shared files without authentication

Super User II
Super User II
*moves to API forum*

 


- - -


Heart Did this post help you? If so please mark it for some Kudos below. 


 Did this post fix your issue/answer your question? If so please press the 'Accept as Solution' button to help others find it.


 Did this post not resolve your issue? If so please give us some more information so we can try and help - please remember we cannot see over your shoulder so be as descriptive as possible! 


 

Highlighted

Re: Access public shared files without authentication

Dropboxer
Dropboxer
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

View solution in original post

Highlighted

Re: Access public shared files without authentication

Explorer | 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. :/

Highlighted

Re: Access public shared files without authentication

Dropboxer
Dropboxer
How 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.
Highlighted

Re: Access public shared files without authentication

Explorer | 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!

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?