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).
Publicly shared file urls are like this :
To make it direct access link to the respective file, just change the public URL in this format:
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.
- 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.