mirror of
https://github.com/tenrok/axios.git
synced 2026-06-17 19:21:29 +03:00
Fix upload progress event example
This commit is contained in:
@@ -28,7 +28,7 @@
|
|||||||
|
|
||||||
var config = {
|
var config = {
|
||||||
onUploadProgress: function(progressEvent) {
|
onUploadProgress: function(progressEvent) {
|
||||||
var percentCompleted = progressEvent.loaded / progressEvent.total;
|
var percentCompleted = Math.round( (progressEvent.loaded * 100) / progressEvent.total );
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user