2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-11 18:02:32 +03:00

Splitting progress event handlers into upload and download handlers

This commit is contained in:
Dylan Lundy
2016-08-23 14:22:59 +09:30
committed by Nick Uraltsev
parent 59080e68d9
commit 63f41b53aa
4 changed files with 127 additions and 10 deletions
+1 -1
View File
@@ -27,7 +27,7 @@
data.append('file', document.getElementById('file').files[0]);
var config = {
progress: function(progressEvent) {
onUploadProgress: function(progressEvent) {
var percentCompleted = progressEvent.loaded / progressEvent.total;
}
};