From 5e49d3957b166f42ad6266ffc2dbc6772cac9cfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=87etin?= <69278826+cetincakiroglu@users.noreply.github.com> Date: Thu, 8 Sep 2022 14:02:29 +0300 Subject: [PATCH] Fixed #11886 - fileUpload | Notification messages not work --- src/app/components/fileupload/fileupload.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/components/fileupload/fileupload.ts b/src/app/components/fileupload/fileupload.ts index a6516ed34d1..f4e1e866d4d 100755 --- a/src/app/components/fileupload/fileupload.ts +++ b/src/app/components/fileupload/fileupload.ts @@ -313,6 +313,7 @@ export class FileUpload implements AfterViewInit,AfterContentInit,OnInit,OnDestr } validate(file: File): boolean { + this.msgs = []; if (this.accept && !this.isFileTypeValid(file)) { this.msgs.push({ severity: 'error', @@ -465,6 +466,7 @@ export class FileUpload implements AfterViewInit,AfterContentInit,OnInit,OnDestr } checkFileLimit() { + this.msgs = []; if (this.isFileLimitExceeded()) { this.msgs.push({ severity: 'error',