File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 786
786
// Set upload status props
787
787
proxyXHR . total = _total ;
788
788
proxyXHR . loaded = 0 ;
789
+ proxyXHR . filesLeft = dataArray . length ;
789
790
790
791
// emit "beforeupload" event
791
792
options . beforeupload ( proxyXHR , options ) ;
798
799
, _fileOptions = _simpleClone ( options )
799
800
;
800
801
802
+ proxyXHR . filesLeft = dataArray . length ;
803
+
801
804
if ( _file && _file . name === api . expando ) {
802
805
_file = null ;
803
806
api . log ( '[warn] FileAPI.upload() — called without files' )
873
876
874
877
875
878
// ...
876
- proxyXHR . abort = function ( current ) { this . current = current ; xhr . abort ( ) ; } ;
879
+ proxyXHR . abort = function ( current ) { dataArray . length = 0 ; this . current = current ; xhr . abort ( ) ; } ;
877
880
878
881
// Start upload
879
882
xhr . send ( form ) ;
901
904
}
902
905
} ) ;
903
906
907
+ proxyXHR . statusText = "" ;
908
+
904
909
if ( _complete ) {
905
910
_nextFile . call ( _this ) ;
906
911
}
You can’t perform that action at this time.
0 commit comments