Progress bar for superagent file upload
I am using the following codes to upload files. File would be sent through superagent in blob format, convert it to dataURI when reaches server and save into AWS S3. files.forEach((file) => { superagent.post('http://localhost:3030/uploads') .attach('file', file) .on('progress', e => { console.log('Percentage done: ', e); }) .end((err, res) => { // console.log(err); console.log(res); }); }); File upload works but the progress bar is not populated correctly. As per the screenshot, you can see that the ProgressEvent upload percentage ended very fast at 100%, due to both frontend and backend