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',