Downloading from Google Drive appears to become stuck #9810. Need to set Allow all cookies for Google Drive to download any file. Blocking it causes the. If you are using your school address, and are not able to access Google Drive files/folders, try logging out of your school gmail account. Another option is to talk to your school’s network specialist and share that you are unable to download a Google Drive document from a trusted educator.
I am trying to download a File from google drive using Google SDK API using node.js.
But I am unable to write/save file at server side - node.js
Code:-
I am getting this in console:- Content of xhr.responseText is something like that
Please help me to know what is the format of the data I am getting from Drive Api and write it in which format so that I got a complete .docx file
Edit
I am open to use any method other than xmlRequest if it helps me downloading the file(.docx).
3 Answers
node-XMLHttpRequest, it seems, does not support binary downloads - see this issue. What you are seeing is the file's binary contents converted into String which, in JavaScript, is an irreversible and destructive process for binary data (which means you cannot convert the string back to buffer and get the same data as the original contents).
Using request, you can download a binary file this way:
Note: This will buffer the whole file into memory before it can be saved to disk. For small files, this is fine, but for larger files, you might want to look into implementing this as a streamed download. This SO question already answers that, I recommend you have a look.
More information about how to authorize your requests can be found on Google Developers docs.
Can't Download Video From Google Drive
Complete Working example: Downloading file from GoogleDrive - Node.js API
I was just having issues with this, I've included an example of how I managed to get this working using the Google API Node.js library: https://gist.github.com/davestevens/6f376f220cc31b4a25cd
Not the answer you're looking for? Browse other questions tagged javascriptnode.jsgoogle-drive-api or ask your own question.
I am trying to download two files originally linked on this page. The author has edited the linked page but an archived version of the page and files I was referring to can be found here. The links are right beneath the text Downloads from the video:
Downloads from the video:
Start.blend
Finished.blend
Normal Map Combine.blend - Simple Node group to combine any normal map together.
I'm using the latest version of Firefox. The files in question are hosted on Google Drive, and have 64MB and 135 MB, respectively. I am trying to download them one by one, as that is the way they are hosted.
Google warns that it's unable to scan either of the files due to their size. I click on Download anyway, and the page reloads. Regardless of how many times I try this, the page just keeps reloading every time, and download doesn't start.
This behaviour persists in both normal and private mode. I've also tried using Opera, and the behaviour was the same.
Googling about gave back this, so I guess I'm not the only one with the problem, and it seems the issue is not new.
Does anyone know how I can download the two files by using Firefox?
Rubén3 Answers
There should not be any issue for Google Drive downloads.Try on different network connection.
Note: Use updated version of Browser
Had the same problem.Solution for me was changing time zone in windows settings.Reason: cookie started with 'download_warning_....', returned from google.com, become immediately expired and never sent back.
Unable To Download From Google Drive Access Denied
Perhaps it's not a network issue, for me it's not: I'm using two different pcs on the same connection, with different o.s. (XP & Win7) and different antivirus protection, the XP one it's able to download, the other not (same files), in the same way described by FiddlingAway. The page recharge with a little address'difference in the string preceding the file id.