Merge pull request #6901 from sdkirlak/master
Add isFileLimitExceeded before file is pushed in FileUploadpull/6920/head
commit
0eec496499
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue