File tree Expand file tree Collapse file tree 2 files changed +10
-12
lines changed Expand file tree Collapse file tree 2 files changed +10
-12
lines changed Original file line number Diff line number Diff line change 723
723
}
724
724
725
725
if ( hasDir ) {
726
+ if ( ! uploadProgressively ) {
727
+ return ;
728
+ }
726
729
if ( ! optDirFile && ! optInnerDirFile ) {
727
730
return ;
728
731
}
735
738
optInnerDirFile . click ( ) ;
736
739
}
737
740
}
738
- if ( uploadProgressively ) {
739
- btnSubmit . disabled = true ; // disable earlier
740
- getFilesFromItems ( e . dataTransfer . items , function ( files ) {
741
- uploadProgressively ( files ) ;
742
- } ) ;
743
- } else {
744
- form . submit ( ) ;
745
- }
741
+ btnSubmit . disabled = true ; // disable earlier
742
+ getFilesFromItems ( e . dataTransfer . items , function ( files ) {
743
+ uploadProgressively ( files ) ;
744
+ } ) ;
746
745
} else {
747
746
if ( optFile && optActive !== optFile ) {
748
747
optFile . focus ( ) ;
Original file line number Diff line number Diff line change @@ -636,6 +636,9 @@ break;
636
636
}
637
637
}
638
638
if (hasDir) {
639
+ if (!uploadProgressively) {
640
+ return;
641
+ }
639
642
if (!optDirFile && !optInnerDirFile) {
640
643
return;
641
644
}
@@ -648,15 +651,11 @@ optInnerDirFile.focus();
648
651
optInnerDirFile.click();
649
652
}
650
653
}
651
- if (uploadProgressively) {
652
654
btnSubmit.disabled = true; // disable earlier
653
655
getFilesFromItems(e.dataTransfer.items, function (files) {
654
656
uploadProgressively(files);
655
657
});
656
658
} else {
657
- form.submit();
658
- }
659
- } else {
660
659
if (optFile && optActive !== optFile) {
661
660
optFile.focus();
662
661
optFile.click();
You can’t perform that action at this time.
0 commit comments