allow multiple file upload
This commit is contained in:
parent
68d15f665e
commit
8e560676f1
2 changed files with 5 additions and 3 deletions
|
@ -6,8 +6,10 @@ const mediaUpload = {
|
|||
const input = this.$el.querySelector('input')
|
||||
|
||||
input.addEventListener('change', ({target}) => {
|
||||
const file = target.files[0]
|
||||
this.uploadFile(file)
|
||||
for (var i = 0; i < target.files.length; i++) {
|
||||
let file = target.files[i]
|
||||
this.uploadFile(file)
|
||||
}
|
||||
})
|
||||
},
|
||||
data () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue