For publicly shared files the sharing url opens the respective file in Google document viewer. So if someone wants to escape the Google default viewer page then here is the trick to do that.

Using below method, any ‘publicly shared file’ can be accessed can be accessed directly without going through Google viewer page. It is most likely hot-linking but not the same (reasons mentioned at the end of the post).

Capture

Publicly shared file urls are like this :

https://drive.google.com/file/d/<File-Code>

Example:
https://drive.google.com/file/d/0B3sWXguXdXt1NTBRQVR0SWRxY2c

To make it direct access link to the respective file, just change the public URL in this format:

https://googledrive.com/host/<File-Code>

Example:
https://googledrive.com/host/0B3sWXguXdXt1NTBRQVR0SWRxY2c

It will provide the direct access to the file itself. But this approach should be used with care as their are some disadvantages of it which is mentioned below.

Cons:

  • Browser supported file type will open itself in the browser
  • If opened in Browser, then you have to save it proper Human-readable name
  • If not supported, download will initiate and files are saved with the <File-Code>  with NO extensions. So proper monitoring is required while downloading such files.

Homefile sharingGoogle DriveHow-to GuideDirect file access in Google Drive