Skip to content

Commit

Permalink
Merge pull request #15183 from primefaces/issue-15150
Browse files Browse the repository at this point in the history
Fixed #15150 - p-fileUpload | auto file upload not working in advance…
  • Loading branch information
cetincakiroglu authored Mar 29, 2024
2 parents 4dd2a1c + 6591c44 commit 86f23b8
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 @@ -582,7 +582,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 86f23b8

Please sign in to comment.