Skip to content

Commit c12f52f

Browse files
committed
* checked: fixed progress event
1 parent 058bf80 commit c12f52f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

lib/FileAPI.XHR.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -148,14 +148,14 @@
148148
if ( options._chunked ) {
149149
// chunked upload
150150
if( xhr.upload ){
151-
// https://github.com/blueimp/jQuery-File-Upload/wiki/Fixing-Safari-hanging-on-very-high-speed-connections-%281Gbps%29
152-
xhr.upload.addEventListener('progress', api.throttle(function (/**Event*/evt){
153-
var e = api.extend({}, evt, {
154-
loaded : data.start + evt.loaded,
155-
totalSize : data.size,
156-
total : data.size});
157-
options.progress(e, _this, options);
158-
}, 100), false);
151+
xhr.upload.addEventListener('progress', function (/**Event*/evt){
152+
options.progress({
153+
type: evt.type
154+
, total: data.size
155+
, loaded: data.start + evt.loaded
156+
, totalSize: data.size
157+
}, _this, options);
158+
}, false);
159159
}
160160

161161
xhr.onreadystatechange = function (){

0 commit comments

Comments
 (0)