Jj's web stream

How to reset file input with VueJS

It took me a while of digging to find how to do this.

Turns out that you have to resort to using your component's $refs and then you have access to your HTML object.

In your template:

<input type="file" ref="myFileInput"/>

In your component's method:

this.$refs.myFileInput.value = '';