Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disabling the large file notification from google drive

While downloading zip file(more than 25MB i assume) i am getting the below notification,

Sorry, we are unable to scan this file for viruses.

The file exceeds the maximum size that we scan. Download anyway

in the browser.Is there any option to disable it,so that i can download any large file directly without having to receive such messages as interruption.

Want to know whether any setting is there in the google drive, so that i can disable that broker message.

like image 200
Nithinbemitk Avatar asked Feb 06 '13 11:02

Nithinbemitk


2 Answers

After spending many countless hours trying to get a direct download link that bypasses the virus scan I finally figured it out by accident. A URL in the format below along with your Google API key will bypass the virus scan. I could not find this documented anywhere (here is the official doc) so use at your own risk as future updates might break it. https://www.googleapis.com/drive/v3/files/fileid/?key=yourapikey&alt=media

You can also use the authorization access token from google oauth instead of the apikey.

like image 149
harkirat singh Avatar answered Sep 26 '22 00:09

harkirat singh


Obsolete: this approach no longer works after August 31, 2016

I found that the following pattern allows to disable the large file notification:

https://googledrive.com/host/file-id

I think anyone knows how to find the file-id for Google Drive file.

Please keep in mind that this method works only if file is shared with "Public on the web" option.

But this feature is deprecated and will stop working after August 31, 2016: http://googleappsdeveloper.blogspot.com/2015/08/deprecating-web-hosting-support-in.html

like image 35
Victor Sharovatov Avatar answered Sep 27 '22 00:09

Victor Sharovatov