How does percentage work again?

This commit is contained in:
Jeremy Zhang 2018-08-17 05:06:46 +00:00
parent 127d6609b8
commit 38bf9133da

View File

@ -164,7 +164,7 @@
// For handling the progress of the upload // For handling the progress of the upload
myXhr.upload.addEventListener('progress', function(e) { myXhr.upload.addEventListener('progress', function(e) {
if (e.lengthComputable) { if (e.lengthComputable) {
$("#filemodalprogress-inner").css("width", (e.loaded/e.total) + "%") $("#filemodalprogress-inner").css("width", (e.loaded/e.total) * 100 + "%")
} }
} , false); } , false);
} }