Devtantra Blog

Tutorials about Android, Angular, ReactJS, PHP, MySQL and Web Development

Dropbox URL tip & tricks

Did you know that when you send someone a Dropbox link to a file that you want them to download that it takes them to Dropbox online and they have to take a few more steps to download it?

Well…it does.

So, when you provide a link like this:

https://www.dropbox.com/s/72go9jvokudsidb/gmailextensions.pdf?dl=0

which is the link you get when you ask to “copy dropbox link” within your dropbox account, it takes them to a screen that looks like this (obviously YOUR file will be in the place of where mine is right now).
They then have to click the link at the top to download it. So it’s more work for them, which can be super annoying.

Another reason this is not so great is because there are some people who don’t have a Dropbox account and/or hate it – so they’ll get a notification that Dropbox wants them to create an account and they’re not going to like that much (not that they HAVE to but it could be annoying).

So, there’s a solution.

All you have to do is change the “0” at the VERY END of your Dropbox link to a “1”.

Yes, that’s it.

So instead of this https://www.dropbox.com/s/khq6f4ju732la2p/Screenshot%202016-03-30%2014.22.39.png?dl=0

You’d have something like this https://www.dropbox.com/s/khq6f4ju732la2p/Screenshot%202016-03-30%2014.22.39.png?dl=1

“Then what happens?”, you ask.

Render a file in a browser directly
Some browsers aren’t configured to correctly preview files. While certain file types can be downloaded instead of opened, others—like HTML—are not supported.

To bypass the preview page and allow your browser to directly render your files, use raw=1 as a query parameter in your URL. Adding raw=1 to a URL will cause an HTTP redirect. If you’re an app developer using such a URL in your own code, please make sure your app can follow redirects as well.

2
0

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: