After we get the request object from req = drive.files.insert
how to use it find file upload progress ?
I searched for it in the req string
by calling it multiple times but to no avail.
function uploadFile(){
var path = untildify("~/workspace/incomplete/aw.jpg");
var drive = google.drive('v2');
var req = drive.files.insert({
resource: {
title: 'aw.jpg'
},
media: {
body: fs.createReadStream(path)
},
auth: oauth2Client
}, function(err, response) {
if (err)
console.log(err);
// else
// console.log(response);
});
console.log(req);
}