Skip to content

Commit

Permalink
fix(Upload): expose error to OnError in beforeUpload, Close #128
Browse files Browse the repository at this point in the history
  • Loading branch information
tao1991123 committed Jan 14, 2019
1 parent 86f5f1f commit 1981db5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/upload/runtime/uploader.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ export default class Uploader {
return;
}
this.post(file, obj.isPlainObject(options) ? options : undefined);
}, () => {
this.options.onError(null, null, file);
}, (error) => {
this.options.onError(error, null, file);
});
}

Expand Down

0 comments on commit 1981db5

Please sign in to comment.