[Vuejs]-Want to access the file uploaded using v-file-input

1👍

You can use the v-model prop.

<v-file-input v-model="myFileObject"></v-file-input>

The myFileObject contains either a single file object, or is an array of file objects. You can find more on the v-file-input documentation.

You must also specify the myFileObject in your data.

data: () => ({
    myFileObject: null
})
👤LMB

Leave a comment