Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use Google Drive as a sort of CDN

So, what I'm trying to do is load up some resource files (.js, .css, etc.) to Google Drive. Basically, I'd like to use my Google Drive this as a sort of CDN. Is this possible? When I upload say, a .js file, I'd like to get a direct link (http://drive.google.com/test/test.js, for example).

like image 923
Mike Marks Avatar asked May 01 '15 17:05

Mike Marks


People also ask

Can you use Google Drive as CDN?

You can use Google Drive to serve images for your website or for an email signature, website or many other purposes too.

How do I use Google Drive as CDN in WordPress?

Upload the google-drive-cdn folder to the /wp-content/plugins/ directory. Activate the plugin through the „Plugins“ menu in WordPress. Configure the plugin by going to the „Google Drive CDN“ menu that appears in your settings menu.

Is there an app to organize Google Drive?

Workona lets you organize all your work for a project in one place. All the docs, links, & files for a project are contained within one workspace, so you don't need to search across scattered folders and files in Google Drive.


1 Answers

With images is easy: Upload it, then click preview. In Chrome (crtl+shift+J) or in firefox get the html text from that image: u will have something like:

<img src="https://drive.google.com/thumbnail?id=0B6czwVjwSt48SDJNRWZZWlFmZmM&amp;authuser=0&amp;v=1412661926713&amp;sz=w1475-h579" class="a-c-ub-Aa a-c-Ma-td-Ib" alt="Displaying Koala.jpg" aria-hidden="true">

Then open that url in other tab (still using your gmail account), you will notice that you will open the image and obtain a new URL. This new URL is visible to open with non authenticated google account... this means that it is public.....

https://lh5.googleusercontent.com/SuA7NGIYC7uVg7XsIYnYSHEIDnTkLfa04Hm9dPSz8tbZZULdrxVMMIcB6MWTIXHGb0FKTQ=s220

And this is the way you can use it for hosting images.

like image 183
Dryadwoods Avatar answered Oct 12 '22 07:10

Dryadwoods