Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google Drive - Virus scan warning blocks downloads #160

Open
marklar423 opened this issue Aug 7, 2023 · 1 comment
Open

Google Drive - Virus scan warning blocks downloads #160

marklar423 opened this issue Aug 7, 2023 · 1 comment

Comments

@marklar423
Copy link

When downloading large(1) single files from Google Drive, sometimes Google Drive will return an HTML page asking to skip a virus scan, instead of the file bytes. I've attached a sample of the HTML.

From my initial research of others with this problem, there doesn't seem to be an easy way around this just by using curl. One option could be to check the MIME type of the response, and if its HTML try to parse out the "continue" link. However, this is hacky and will likely break whenever Google changes that page.

Another option is rclone instead of curl, as added by #35 . Since rclone uses the Google API (and not raw HTTP) it doesn't have this issue and would work without any hacking / parsing HTML.

(1): The limit for "large" appears to be between 50 and 100 MB, as my ~50 MB files downloaded fine, but the 109 MB file I have downloaded the warning HTML instead.

@marklar423
Copy link
Author

virus scan warning.html.txt
(Attaching sample HTML returned instead of file)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant