cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to know what we learned at IBC? Check out our learnings on media, remote working and more right here.

Create, upload, and share

Find help to solve issues with creating, uploading, and sharing files and folders in Dropbox. Get support and advice from the Dropbox Community.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

public links to raw files?

public links to raw files?

Arian H.
New member | Level 1
Go to solution

Im a developer and I like using Dropbox as a small CDN to throw up files on for testing (like putting a whole JS Lib onto JSFiddle for testing).
However recently I cant seem to figure out how to get a link to the raw file easily.
I thought before I would right click on the file and choose 'Dropbox->Get Public Link' but in recent versions there just seems to be a Share button (same on the website interface as well).

I want to be able to get public links like how I used to so I can use Dropbox as a mini CDN/FTP.
How can i do this via Windows 7 interface/Dropbox app or Dropbox website?
Here is an example: http://jsfiddle.net/g425cma2/
Right now the share links Im getting back from Dropbox look like: https://www.dropbox.com/s/4shinfx72yzqsws/jquery.maskedinput-merged.js?dl=0
but before I swear it looked closer like https://dl.dropboxcontent.com/u/$username/home/public/theFilepath/theFile.js
Did Dropbox change how to 'share' files?

Thanks!,
Ari

1 Accepted Solution

Accepted Solutions

Rich
Super User II
Go to solution

https://dl.dropbox.com/s/4shinfx72yzqsws/jquery.maskedinput-merged.js?dl=0

A share link with "www" at the beginning will open in the preview page.

A share link with "dl" at the beginning will tell your browser to handle the file as it sees fit (display in the browser, open in a configured application, or present it for download).

A share link with "dl" at the beginning and "?dl=1" at the end will force your browser to download the file.

Examples using an animated GIF file:

https://www.dropbox.com/s/0skuwdlhg6q4fol/History%20of%20GIF.gif

https://dl.dropbox.com/s/0skuwdlhg6q4fol/History%20of%20GIF.gif

https://dl.dropbox.com/s/0skuwdlhg6q4fol/History%20of%20GIF.gif?dl=1

 

 

[This thread is now closed by moderators due to inactivity. If you're experiencing a similar behavior, feel free to start a new discussion in the Dropbox Community here.]

View solution in original post

1 Reply 1

Rich
Super User II
Go to solution

https://dl.dropbox.com/s/4shinfx72yzqsws/jquery.maskedinput-merged.js?dl=0

A share link with "www" at the beginning will open in the preview page.

A share link with "dl" at the beginning will tell your browser to handle the file as it sees fit (display in the browser, open in a configured application, or present it for download).

A share link with "dl" at the beginning and "?dl=1" at the end will force your browser to download the file.

Examples using an animated GIF file:

https://www.dropbox.com/s/0skuwdlhg6q4fol/History%20of%20GIF.gif

https://dl.dropbox.com/s/0skuwdlhg6q4fol/History%20of%20GIF.gif

https://dl.dropbox.com/s/0skuwdlhg6q4fol/History%20of%20GIF.gif?dl=1

 

 

[This thread is now closed by moderators due to inactivity. If you're experiencing a similar behavior, feel free to start a new discussion in the Dropbox Community here.]

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Rich Super User II
What do Dropbox user levels mean?