Cover image

How to use Google Drive to host files

This short tutorial will guide you on how to host and link to files on Google Drive.

Once in a while you need a place to host your static files. Wouldn't it be nice if there's a free... oh! Google Drive!


  1. The first step is, well, upload your file to Google Drive. Be sure the folder's access type to "Anyone with the link".

  2. Right click on the file you want and click Get link.

  3. A dialog box will open showing you the link to the file. This should look something like,

The yourfileid is your file ID which will be unique to that particular file. It's 33 characters long and could contain alphanumeric characters, plus - and _. Copy this down somewhere. You'll need it later.

  1. Well, this is where you need your file ID. The URL of the file that's accessible to anyone is
  1. Done!

This article is probably incomplete, but should serve its purpose for now.