jeudi 2 juillet 2015

AWS javascript SDK multiple file upload progress bar

I can already upload my files to s3. But I want to get the progress loaded in each file.

bucket.upload(params, function(err, data){
   console.log("File Uploaded Successfully");
}).on('httpUploadProgress', function(progress){
   console.log(progress.loaded / progress.total * 100);}

The problem with this code is. The progress returns some data but it does not identify that this data is for that single file.

Is there any way to find out if the return progress is for that single data?.




Aucun commentaire:

Enregistrer un commentaire