mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-25 14:37:02 +01:00
How does percentage work again?
This commit is contained in:
parent
127d6609b8
commit
38bf9133da
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user