Hello im trying to store a FileList object inside vue data object but it's being stored as string "File"
Im adding a ref to html like this
<input type="file" @change="fileChange($event.target)">
And in the javascript
new Vue({
el: '#someEl',
data: {
file: null
},
methods: {
fileChange (file) {
this.file = file.files[0]
}
}
})


this.file=e.target.files[0]&@change="fileChange($event)"should work[object File]would be more expected here). Also, notpicking, but it is a File objevt you are trying to store here. The FileList is the object above.