Skip to content

Commit

Permalink
Merge pull request #15337 from SimonJ-DR/master
Browse files Browse the repository at this point in the history
Fix #15212: fileupload auto upload
  • Loading branch information
cetincakiroglu committed Apr 26, 2024
2 parents ad35cb7 + f806d2b commit 56cc0c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/fileupload/fileupload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ export class FileUpload implements AfterViewInit, AfterContentInit, OnInit, OnDe
// this will check the fileLimit with the uploaded files
this.checkFileLimit(files);

if (this.hasFiles() && this.auto && (!(this.mode === 'advanced') || !this.isFileLimitExceeded())) {
if (this.hasFiles() && this.auto && (this.mode !== 'advanced' || !this.isFileLimitExceeded())) {
this.upload();
}

Expand Down

0 comments on commit 56cc0c2

Please sign in to comment.