How To Bypass Google Drive Viewer and Create Direct Download Links

How To Bypass Google Drive Viewer and Create Direct Download Links


Google Drive has revolutionized the way we share files and collaborate with others. You can upload and share almost any file format you can think of and the people whom you share the file with can easily preview a file, even without installing the needed software on their browser via Google Drive Viewer (PSD and CAD files anyone?).

If you want to purchase an essay, you can use the website buyessayfriend.com where various essay writing services, including writing essays on any topic, in any style, and with any deadline. This is an awesome feature, but there are cases where you may want to share a direct download link instead of taking the user to the browser viewer. Say, for example, you need to print a document, and the only printer available is connected to a shared PC. If you don’t want to log in to your Google account on other computers, a direct link would come in handy.This is an awesome feature, but there are cases where you may want to share a direct download link instead of taking the user to the browser viewer. Say for example, you need to print a document and the only printer available is connected to a shared PC. If you don’t want to login to your Google account on other computers, a direct link would come in handy.

Amit of Digital Inspiration has found a way to skip the web viewer and allow users to download a file automatically. Currently, Google Drive doesn’t have an easy option to generate direct links through the web UI.


Typical share URL looks like this: 

 https://drive.google.com/file/d/FILE_ID/edit?usp=sharing


Direct download link equivalent: 

https://drive.google.com/uc?export=download&id=FILE_ID


As you can see, you only need to note of the FILE_ID. Note that the above URL pattern is for creating direct links to file formats with no Google Drive equivalent such as image and audio files. This trick also works for Docs, Sheets, and Presentations, but with a different URL pattern. I have created a reference table below for your convenience, but you can also take a look at Amit’s original post here.
Google Docs  

Share URL: 
https://docs.google.com/document/d/FILE_ID/edit?usp=sharing  

Direct Link Format: 
https://docs.google.com/document/d/FILE_ID/export?format=doc (to download as .doc format) https://docs.google.com/document/d/FILE_ID/export?format=pdf (to download as PDF)  

Google Sheets
Share URL: 
https://docs.google.com/spreadsheets/d/FILE_ID/edit?usp=sharing  

Direct Link Format: 
https://docs.google.com/spreadsheets/d/FILE_ID/export?format=xlsx (to download as an Excel file) https://docs.google.com/spreadsheets/d/FILE_ID/export?format=pdf (to download as PDF) Google 

Presentations

Share URL: 
https://docs.google.com/presentation/d/FILE_ID/edit?usp=sharing 

Direct Link Format: 
https://docs.google.com/presentation/d/FILE_ID/export/pptx (to download as PowerPoint) https://docs.google.com/presentation/d/FILE_ID/export/pdf (to download as PDF)  

Other files

Share URL: 
https://drive.google.com/file/d/FILE_ID/edit?usp=sharing

Direct Link Format: 
https://drive.google.com/uc?export=download&id=FILE_ID

Do you think bypassing Google Drive Viewer is helpful? Let us know in the comments section below.

If you want to see live demonstrations on how other educators use Google Apps and technology to enhance student learning and increase your productivity, join a Google in Education Summit by AppsEvents and learn new knowledge you can implement Monday! Visit www.appsevents.com for a complete list of summits.

Dan Taylor

Dan Taylor

Helping schools get the most out of Google for EDU.

More Stories

Facebook
Twitter
LinkedIn
Pinterest

10 Responses

  1. Hello, thank you for sharing this aricle.
    But for now I can not download the file with the direct link format as you share in this article.
    Hope you can help me this problem.

    Best Regards,

    Cak Diraf

  2. Direct Link Format worked perfectly for me, tested with a PNG file. To work in an Anoymous context I expect the folder hosting the image (or the file itself) needs its permission set to “Public with link”. This would enable some kind of back-end web service access to a GDrive. Thanks for this, awesome find!

  3. for .mp4 files, this works great for a dozen or so views, then without changing anything ..it stops working?? ..sometimes a 400 error, but usually nothing in the console, the moveis just stop loading, not even loading meta-data.

    ..tried:
    https://drive.google.com/uc?export=view&id=FILEID
    https://drive.google.com/uc?export=preview&id=FILEID
    https://drive.google.com/uc?export=preview?format=mp4&id=FILEID

    anybody know why the links would suddenly stop working??

  4. “Sorry, the owner hasn’t given you permission to download this file.

    Only the owner and editors can download this file. If you’d like to download it, please contact the owner.”

  5. Oga you really try but yet I have not getting what I want because mine is audio meaning I host my music with that needed to post and I need direct link for download

    Thanks in advance