Update FileUpload.vue

Fix push
pull/6901/head
sdkirlak 2024-11-30 22:30:44 +01:00 committed by GitHub
parent 60f5a2e13a
commit d1e759c44d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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);