Merge pull request #6901 from sdkirlak/master

Add isFileLimitExceeded before file is pushed in FileUpload
pull/6920/head
Tuğçe Küçükoğlu 2024-12-02 12:04:12 +03:00 committed by GitHub
commit 0eec496499
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);