Skip to content

Commit

Permalink
Update FileUpload.vue
Browse files Browse the repository at this point in the history
Fix push
  • Loading branch information
sdkirlak authored Nov 30, 2024
1 parent 60f5a2e commit d1e759c
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 d1e759c

Please sign in to comment.