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 723723 }
724724
725725 if ( hasDir ) {
726+ if ( ! uploadProgressively ) {
727+ return ;
728+ }
726729 if ( ! optDirFile && ! optInnerDirFile ) {
727730 return ;
728731 }
735738 optInnerDirFile . click ( ) ;
736739 }
737740 }
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+ } ) ;
746745 } else {
747746 if ( optFile && optActive !== optFile ) {
748747 optFile . focus ( ) ;
Original file line number Diff line number Diff line change @@ -636,6 +636,9 @@ break;
636636}
637637}
638638if (hasDir) {
639+ if (!uploadProgressively) {
640+ return;
641+ }
639642if (!optDirFile && !optInnerDirFile) {
640643return;
641644}
@@ -648,15 +651,11 @@ optInnerDirFile.focus();
648651optInnerDirFile.click();
649652}
650653}
651- if (uploadProgressively) {
652654btnSubmit.disabled = true; // disable earlier
653655getFilesFromItems(e.dataTransfer.items, function (files) {
654656uploadProgressively(files);
655657});
656658} else {
657- form.submit();
658- }
659- } else {
660659if (optFile && optActive !== optFile) {
661660optFile.focus();
662661optFile.click();
You can’t perform that action at this time.
0 commit comments