Skip to content

Commit

Permalink
Merge pull request #6901 from sdkirlak/master
Browse files Browse the repository at this point in the history
Add isFileLimitExceeded before file is pushed in FileUpload
  • Loading branch information
tugcekucukoglu authored Dec 2, 2024
2 parents 9fbc64a + d1e759c commit 0eec496
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/primevue/src/fileupload/FileUpload.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0eec496

Please sign in to comment.