i want to show upload progress when uploading big files. i am using googleapis npm package, drive_v3. Same question asked for download progress and answered with some workaround using streams. unfortunately i cant get it working with upload.
sample code is here
// drive:drive_v3.Drive
let response = await this.drive.files.create({
media: {
body: buffer
},
fields: 'id',
}, {
// this event is deprecated and ignored :C
onUploadProgress(ev) {
}
})
i tried onUploadProgress event, which is deprecated not working. tried some stream approach but didn't success.
Well I managed to get upload progress on nodejs google drive api. As I said before, used a stream based workaround by using progress_stream package.