From d1e759c44da58ebf1d6786a3d7490654c578d51b Mon Sep 17 00:00:00 2001 From: sdkirlak <121451455+sdkirlak@users.noreply.github.com> Date: Sat, 30 Nov 2024 22:30:44 +0100 Subject: [PATCH] Update FileUpload.vue Fix push --- packages/primevue/src/fileupload/FileUpload.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/primevue/src/fileupload/FileUpload.vue b/packages/primevue/src/fileupload/FileUpload.vue index b474da64e..f7922182a 100755 --- a/packages/primevue/src/fileupload/FileUpload.vue +++ b/packages/primevue/src/fileupload/FileUpload.vue @@ -135,7 +135,7 @@ export default { let files = event.dataTransfer ? event.dataTransfer.files : event.target.files; for (let file of files) { - if (!this.isFileSelected(file)) { + if (!this.isFileSelected(file) && !this.isFileLimitExceeded()) { if (this.validate(file)) { if (this.isImage(file)) { file.objectURL = window.URL.createObjectURL(file);