File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 148
148
if ( options . _chunked ) {
149
149
// chunked upload
150
150
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 ) ;
159
159
}
160
160
161
161
xhr . onreadystatechange = function ( ) {
You can’t perform that action at this time.
0 commit comments