Skip to content

Commit 4638df1

Browse files
authored
fix multipleSize
1 parent 58c8190 commit 4638df1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/vue-core-image-upload.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,11 @@
105105
console.warn('FILE IS TOO LARGER MAX FILE IS ' + formatSize);
106106
return this.__dispatch('errorhandle','FILE IS TOO LARGER MAX FILE IS ' + formatSize);
107107
}
108+
109+
if (this.multipleSize > 0 && e.target.files.length > this.multipleSize) {
110+
console.warn('FILE NUM IS LARGER THAN ' + this.multipleSize);
111+
return this.__dispatch('errorhandle', 'FILE NUM OVERLOAD');
112+
}
108113
109114
this.files = e.target.files;
110115
if (this.crop || this.resize) {

0 commit comments

Comments
 (0)