File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ abstract class BaseRequest {
101101 ///
102102 /// If defined, this callback will be called when the upload progress changes.
103103 ///
104- /// In browser, uses XMLHttpRequest's "xhr.upload.onLoad " event.
104+ /// In browser, uses XMLHttpRequest's "xhr.upload.onProgress " event.
105105 ///
106106 /// In IO, uses the yield length of the stream. The total length of the bytes
107107 /// yielded by the stream at any given moment is "uploaded" and the total
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ class BrowserClient extends BaseClient {
5252 var completer = Completer <StreamedResponse >();
5353
5454 if (request.onUploadProgress != null ) {
55- xhr.upload.onLoad .listen ((event) {
55+ xhr.upload.onProgress .listen ((event) {
5656 if (event.lengthComputable) {
5757 request.onUploadProgress !(event.total! , event.loaded! );
5858 }
You can’t perform that action at this time.
0 commit comments