[Vuejs]-How to upload a photo in my Form and into my Vuex store?

0๐Ÿ‘

โœ…

I got it now:

<q-file
  @input="getFile"
  label="Upload file"
/>
methods: {
  getFile(file) {
    // file is in the file variable
    this.mealToSubmit.photo = file
  }
}

Leave a comment