gdrive
gdrive copied to clipboard
Unable to upload or list files from shared drives
Hii,
i tried to upload files into my shared drive, but received Failed to get file: googleapi: Error 404: File not found: 0AMYYbxxxxxxxxx., notFound Error.
any way to fix that?
command i used: gdrive upload --parent 0AMYYbxxxxxxxx file.zip
Trying right now, getting the same :(
same here
Still seeing this with new 2.1.1 release as well.
Same here...
Folks use https://github.com/labbots/google-drive-upload -- updated and works easily with shared drives.
same here
@Anon-Exploiter thanks for sharing https://github.com/labbots/google-drive-upload, it looks cool but the initial setup is a bit too complicated to be used at an organization level
@ethanjyx that's the thing, you only have to do it once. Create the API keys of google drive using google console. Store those JSON credentials somewhere.
Now in the future, on whatever machine, or whatever cloud instance, just run the curl command to download and set up the uploader, pass those stored credentials, allow the token read permissions, run the script.
--
The same guy wrote a google drive downloader too, so, all I do is run it's .sh file, pass the same credentials, give write permissions, and, easily download files from my google account.
--
Apart from that, I've tried many, many tools, none were useful on SSH in an EC2 Instance.
@Anon-Exploiter that's good to know - I don't mind doing it once for myself, but I need to pick a tool that can scale within the company, I can imagine this set up will be too much to board every employee.
Why cannot that tool be made to have as simple login as this one?
I have created a fork that supports all drives here https://github.com/trinvh/gdrive You can find the latest binary in the release page.
awesome @trinvh , what about merging directly into this repo?
@ethanjyx not sure if this repo is maintained actively. There are a lot of pending PRs and the last update is about 8 months ago
@trinvh I've tried, but your release doesn't work with shared drives
I tried to manually enter the file ID which I can view and is shared with me, but get the following error:
Failed to download file: googleapi: got HTTP response code 403 with body: {
"error": {
"errors": [
{
"domain": "global",
"reason": "cannotDownloadFile",
"message": "This file cannot be downloaded by the user."
}
],
"code": 403,
"message": "This file cannot be downloaded by the user."
}
}