[Vuejs]-Change event calling only at once how to fix this vuejs

0👍

possible reason Vue may not be properly tracking the value of the input element. The v-model directive is used to bind the value of the input to a data property in Vue instance, try adding v-model to input file

   <input type="file" v-model="file" @change="update" />

Leave a comment