resumable uri: https://www.googleapis.com/upload/drive/v3/files?uploadType=resumable&upload_id=ADPycducJGWQ62n6E0K5mD81RGJw-0eIsga8dBxarfSY_2Pk5hFJhBs230Q8ay
PUT request:
let postFile = await axios.request(
{
method: "PUT",
url: resumableURI,
headers: {
Authorization: `Bearer ${process.env.GOOGLE_ACCESS_TOKEN}`,
"Content-Length": req.files.muploadedFile.size,
},
body : bufferToStream(buffer)
}
)
console.log(postFile.data)
Is there any problem with code
After a while im getting this:
- That’s an error.
Your client has taken too long to issue its request.
That’s all we know.