HTML & Gadgets‎ > ‎How-tos‎ > ‎

Google Drive Web Hosting

posted Oct 20, 2013, 8:05 PM by Morteza Mirmojarabian   [ updated Feb 6, 2016, 9:34 PM ]
You can store your files on Google Sites, mainly for download. However, I strongly recommend that you take advantage of the Google Drive site publishing feature to host and link to your files.
For instance, let's see how to upload an animated GIF image to Drive, get its URL, and embed it in your Site.

Instructions

  • Go to your Google Drive ► click CreateFolder ► enter a name for the new folder ► click Create.
  • Right-click on the new folder ► click ShareChange...Public on the webSaveDone.
  • Open the public folder ► click the red Upload button ► Files... ► select the image file ► click Upload and share.
    If the Upload settings dialog appears, make sure that the conversion options are unchecked and then click Start upload.
  • When the upload is complete, close the box that indicates the progress of your upload.
  • Right-click on the file ► select Details and activityDetails ► click the link under Hosting ► copy the image URL in the address bar of your browser.
  • Now go to your Google Site ► click Edit pageInsertImageWeb address (URL) ► paste the URL ► OKSave.

Result

Live Landscape

Notes

  1. You can take similar steps to get the public folder URL:
    Right-click on the folder ► select Details and activityDetails ► click the link under Hosting. Now you can see the folder URL as well as a listing of its contents.
    As an alternative to the directory listing, you might want to display a custom page when navigating to the folder URL:
    • Download the index page template.
    • Open it with a plain text editor, e.g. Notepad, and customize it to meet your needs.
    • Upload index.html to your folder.
  2. If you'd like to upload a new version of a file, right-click on the file ► click Manage revisions...Upload new revision.
  3. To organize the files in your folder, you can create a hierarchy of subfolders. It's also possible to create other public folders in your Drive.
DiscussPlease note that all posts are moderated.