Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to reset vuetify's v-input-file

How can we reset vuetify's v-input-file? To clear the form input file after each upload?

        <v-file-input
          label="Upload"
          accept="image/*"
          @change="selectFile"
        >
        </v-file-input>
like image 493
davidlee Avatar asked Sep 06 '25 03:09

davidlee


1 Answers

I had to go into the input component and clear the value

this.$refs.fileupload.$refs.input.value = null
like image 195
Aronanda Avatar answered Sep 07 '25 21:09

Aronanda