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 {
101
101
///
102
102
/// If defined, this callback will be called when the upload progress changes.
103
103
///
104
- /// In browser, uses XMLHttpRequest's "xhr.upload.onLoad " event.
104
+ /// In browser, uses XMLHttpRequest's "xhr.upload.onProgress " event.
105
105
///
106
106
/// In IO, uses the yield length of the stream. The total length of the bytes
107
107
/// 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 {
52
52
var completer = Completer <StreamedResponse >();
53
53
54
54
if (request.onUploadProgress != null ) {
55
- xhr.upload.onLoad .listen ((event) {
55
+ xhr.upload.onProgress .listen ((event) {
56
56
if (event.lengthComputable) {
57
57
request.onUploadProgress !(event.total! , event.loaded! );
58
58
}
You can’t perform that action at this time.
0 commit comments