File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -589,10 +589,10 @@ function QiniuJsSDK() {
589589 ajax . setRequestHeader ( 'Authorization' , 'UpToken ' + that . token ) ;
590590 ajax . onreadystatechange = function ( ) {
591591 if ( ajax . readyState === 4 ) {
592+ localStorage . removeItem ( file . name ) ;
592593 if ( ajax . status === 200 ) {
593594 var info = ajax . responseText ;
594595 last_step ( up , file , info ) ;
595- localStorage . removeItem ( file . name ) ;
596596 } else {
597597 uploader . trigger ( 'Error' , {
598598 status : ajax . status ,
Original file line number Diff line number Diff line change @@ -589,10 +589,10 @@ function QiniuJsSDK() {
589589 ajax . setRequestHeader ( 'Authorization' , 'UpToken ' + that . token ) ;
590590 ajax . onreadystatechange = function ( ) {
591591 if ( ajax . readyState === 4 ) {
592+ localStorage . removeItem ( file . name ) ;
592593 if ( ajax . status === 200 ) {
593594 var info = ajax . responseText ;
594595 last_step ( up , file , info ) ;
595- localStorage . removeItem ( file . name ) ;
596596 } else {
597597 uploader . trigger ( 'Error' , {
598598 status : ajax . status ,
You can’t perform that action at this time.
0 commit comments