Article directory
OnLinuxon the server,使用cloneOfcopy
command,tryWhen downloading some ZIP, APK or EXE files on GDrive, the following error message appears▼
file: Failed to copy: failed to open source object: open file failed: googleapi: Error 403: This file has been identified as malware or spam and cannot be downloaded., cannotDownloadAbusiveFile
- file: copy failed: failed to open source file object: failed to open file: googleapi: error 403: This file has been identified as malicioussoftwareor spam, can't download. , cannotDownloadAbusiveFile
Why does open file f appearailed: googleapi: Error 403 error?
- because it is recognized by Google Drive asabuse (malware, etc.) files that can only be downloaded by the file owner.
- Besides, must contain query parameters
acknowledgeAbuse=true
to indicate that the user has confirmed the risk of downloading potentially malicious software. - Your application should interactively warn the user before using this query parameter.
How to fix can'tDownloadAbusiveFile?
Possible solutions:
It is possible to bypass this error if we add the parameter acknowledgeAbuse=true.
you can also
- Attempt to download abusive files.
- You should get a prompt that says "Use the --drive-acknowledge-abuse flag to download this file"
- try to use
--drive-acknowledge-abuse
Flag parameter to download again and check if it downloaded successfully?
How does Rclone use parameter commands?Please refer to this tutorial▼
If you can't download it successfully, try renaming the file in Google Drive first: ABC.tar
At last,Chen WeiliangTested for yourself that the file renamed to .tar suffix can be downloaded successfully.
Extended reading:
Hope Chen Weiliang Blog ( https://www.chenweiliang.com/ ) shared "Solving file: Failed to copy: failed to open source object: open file failed: googleapi: Error 403", which is helpful to you.
Welcome to share the link of this article:https://www.chenweiliang.com/cwl-27426.html
Welcome to the Telegram channel of Chen Weiliang's blog to get the latest updates!
📚 This guide contains huge value, 🌟This is a rare opportunity, don’t miss it! ⏰⌛💨
Share and like if you like!
Your sharing and likes are our continuous motivation!