From 6591c44074a8ba545c4b15986fef492618944958 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mehmet=20=C3=87etin?= <92744169+mehmetcetin01140@users.noreply.github.com> Date: Thu, 28 Mar 2024 11:13:17 +0300 Subject: [PATCH] Fixed #15150 - p-fileUpload | auto file upload not working in advanced mode --- src/app/components/fileupload/fileupload.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/fileupload/fileupload.ts b/src/app/components/fileupload/fileupload.ts index edd58096d84..5de223f8be4 100755 --- a/src/app/components/fileupload/fileupload.ts +++ b/src/app/components/fileupload/fileupload.ts @@ -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(); }