gdrive icon indicating copy to clipboard operation
gdrive copied to clipboard

download stopped due to file identified as malware or spam

Open dd-han opened this issue 8 years ago • 11 comments

console show:

Failed to download file: googleapi: got HTTP response code 403 with body: {
 "error": {
  "errors": [
   {
    "domain": "global",
    "reason": "cannotDownloadAbusiveFile",
    "message": "This file has been identified as malware or spam and cannot be downloaded."
   }
  ],
  "code": 403,
  "message": "This file has been identified as malware or spam and cannot be downloaded."
 }
}

anyway to bypass this file or force download file ?

dd-han avatar Dec 26 '16 03:12 dd-han

you can download this file from browser?

szunyi avatar Apr 21 '17 10:04 szunyi

@szunyi Yes, I can force the download after confirming the warning on the browser.

But here I can't.

dd-han avatar Apr 26 '17 13:04 dd-han

Is there a solution for this? Because I have the same problem.

keiwanjamaly avatar Feb 25 '18 23:02 keiwanjamaly

@Bomel no, I manually download file to my computer by web browser

then upload to headless machine by ssh

dd-han avatar Feb 26 '18 04:02 dd-han

FYI: There's a parameter, acknowledgeAbuse=true, that can be passed to bypass this warning. The API docs ask that software explicitly get permission from the user before passing it, and passing it for a non-blocked file is an error.

s4y avatar Jun 02 '18 07:06 s4y

User can be prompted to acknowledge abusive file to forcefully download

mbenlioglu avatar Mar 11 '19 16:03 mbenlioglu

User can be prompted to acknowledge abusive file to forcefully download

How? in terminal?

ijat9917 avatar Aug 16 '19 10:08 ijat9917

How to fix it in code? can anyone tell me

DKB0512 avatar Jul 18 '20 04:07 DKB0512

@dkb007 I switch to Rclone for my purpose

dd-han avatar Jul 18 '20 11:07 dd-han

User can be prompted to acknowledge abusive file to forcefully download

How? in terminal?

Did you find out?

Pakos091 avatar Jan 09 '22 00:01 Pakos091

Все решается просто. В файле /gdrive/drive/download.go находим: res, err := self.service.Files.Get(f.Id).SupportsTeamDrives(true).Context(ctx).Download() заменяем на: res, err := self.service.Files.Get(f.Id).AcknowledgeAbuse(true).SupportsTeamDrives(true).Context(ctx).Download()

Как компилировать - смотрим тут - https://github.com/prasmussen/gdrive/issues/392#issuecomment-472186479

PS: использовать отдельно. Т.е. для нормальных файлов - обычную версию gdrive. Для плохих файлов - gdrive измененный. С другим именем например, в варианте с PHP: $str = 'gdrive download --no-progress --path /home/temp/ ' . $drive_id; $out = shell_exec($str); if ( strpos($out, 'This file has been identified as malware or spam and cannot be downloaded') !== false ) { $str = 'gdrivesu download --no-progress --path /home/temp/ ' . $drive_id; $out = shell_exec($str); }

Proff-Roman avatar Jun 16 '22 14:06 Proff-Roman