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:
committed by
Nick Uraltsev
parent
59080e68d9
commit
63f41b53aa
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user