Unger Technologies LLC

GREG UNGER MY FACEBOOK ATHLETE PAGE MY YOUTUBE CHANNEL Follow me on Twitter FOLLOW ME ON TWITTER

How do you use your Google Drive content in a website, email or custom viewer without the Google viewer displaying it? I'll show you

A lot of people have a Google Drive account and if you don't I highly recommend you get a gmail account and get one.

https://www.google.com/drive/

It is pretty awesome what it can do and I have even upgraded my account too 100 GB for just $1.99 per month. It is invaluable and allows you to access to every file you store from any device, anywhere in the world. It allows you to share files and folders, collaborate on documents or spreadsheets, it has built in version control (to some degree) and at the time of this writing, they give you 15 GB of storage for free. (I make no money or have any affiliation with Google Drive.)

Recently, I wanted to try and use some of the content I had in my Google Drive folder on a website of mine because I didn't want multiple copies of the same file all over the place. I like to be able to update my content in 1 place and have 1 source of the truth so to speak. So to figure out the answer, I read a bunch of blogs, looked at YouTube videos, which turned out to be bogus, and read articles on how to do it, all to no avail. The solutions they proposed may have worked at one time, but Google must have found the hole and covered it up. Always best to know what you can and cannot do when using Google Drive. Google Terms Of Service

There are easy ways of finding out what the proper URL is in order to bypass the Google viewer are. You could simply hook up fiddler and click the download button when viewing your Google Drive content and you would see the redirect to a URL that is meant to deliver only your content.

To make it easy, I am going to just share with you the URL and what you need to do to view your content without the Google viewer wrapper.

When you share content on Google the normal URL looks like this:

https://drive.google.com/file/d/0A9Iwe-rgtO-POmQASDlLajlkb32/view?usp=sharing

The important part if the unique id assigned to the file in that URL. The unique id in that URL is: 0A9Iwe-rgtO-POmQASDlLajlkb32

So now we will use a different URL which is used to download the content and thereby bypassing the Google viewer to view it.

http://docs.google.com/uc?export=download&id=0A9Iwe-rgtO-POmQASDlLajlkb32

Note that you can use SSL or not, it's up to you (i.e. use http or https)



Questions this post answers:
How to view content on Google Drive without viewer
View Google doc by itself
View Google doc without viewer
google doc viewer api
view Google docs directly in chrome
view Google docs directly in ie

1 comment:

  1. In coming years, cloud computing is going to rule the world. The cloud based CRM tool provider like Salesforce have massive demand in the market. Thus talking salesforce training in Chennai from reputed Salesforce training institutes in Chennai will ensure bright career prospects for aspiring professionals.

    ReplyDelete