Convert `FileList` to `Array`
This commit is contained in:
parent
70a6c42019
commit
c08058ee4b
|
@ -193,7 +193,7 @@
|
|||
/* eslint-enable */
|
||||
/* jshint ignore:start */
|
||||
getFiles() {
|
||||
const files = this.file ? [this.file] : this.$input.prop('files');
|
||||
const files = this.file ? [this.file] : Array.from(this.$input.prop('files'));
|
||||
const promises = Promise.all(
|
||||
files.map(file => this.getFile(file))
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue