2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-15 11:59:42 +03:00

Fix upload progress event example

This commit is contained in:
Igor De Paula
2016-12-05 14:28:24 -02:00
parent cfe33d4fd3
commit 13bc0e032f
+1 -1
View File
@@ -28,7 +28,7 @@
var config = {
onUploadProgress: function(progressEvent) {
var percentCompleted = progressEvent.loaded / progressEvent.total;
var percentCompleted = Math.round( (progressEvent.loaded * 100) / progressEvent.total );
}
};