Level 18
If you're using v-model you can set it to null once the upload has finished.
<input
v-if="! currentNote"
type="file"
v-el:file
v-model="file">
data: function() {
return {
file: null
}
},
methods: {
uploadFile: function() {
// upload the file...
this.file = null; // cleared
}
}
1 like