From time to time, I want to get direct access to a file on Dropbox or Google Drive. For example, that’s how my super simple In/Out board for Dashing works. The syntax of the URLs for direct file access (without the file viewer) are pretty well documented, but I haven’t committed them to memory. It seems like every time I search for them, they get harder to find.

I’m documenting them here to save myself the trouble in the future.

Dropbox Direct Link

Get the sharing link for the file you want to access from Dropbox, it will look something this:

https://www.dropbox.com/s/[LINK ID]/[FILENAME]?dl=0

Replace www.dropbox.com with dl.dropboxusercontent.com and you should end up with a direct link like this:

https://dl.dropboxusercontent.com/s/[LINK ID]/[FILENAME]

via techapple.net

Google Drive Direct Link

Get the sharing link for the file you want to access from Google Drive, it will look something this:

https://docs.google.com/document/d/[LINK ID]/edit?usp=sharing

The [LINK ID] will be a long string of characters. To create the direct link, replace the [LINK ID] in the URL below with your link ID:

https://docs.google.com/document/d/[LINK ID]/export?format=txt

I specified a text format here, but there are several other options.

via labnol.org

Leave a Reply