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

How to download file infected with virus? #413

Open
Inversion-des opened this issue Aug 25, 2021 · 0 comments
Open

How to download file infected with virus? #413

Inversion-des opened this issue Aug 25, 2021 · 0 comments

Comments

@Inversion-des
Copy link

In my case, I had a problem with one file. There was an archive with an "eicar" file which is used for testing antivirus reaction.
download_to_file method fails in such case with Invalid request (Google::Apis::ClientError).
And it was hard to find a way to resolve this.

Solution is to call it with additional param file.download_to_file("/path/to/hoge.txt", acknowledge_abuse:true).

You can read about the acknowledgeAbuse param here.

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