safrazik / vue-file-agent

The most beautiful and full featured file upload component for Vue JS
https://safrazik.github.io/vue-file-agent/
MIT License
731 stars 93 forks source link

How to Reset / ReInitialize the Component after form is submitted. #195

Open jay-p-b-7span opened 2 years ago

jay-p-b-7span commented 2 years ago

Hello, Vue File Agent package is great for dealing with file handling in vue js applications.

I came across this problem of restting form fields after form is submitted. But for Vue File Agent there was no option i found in documentation to Reset / Reinitialize the component. I have attached a demo Form for reference.

Problem

My Expectations :

image

trikarai commented 2 years ago

just set your v-model to null or []

this.form.files = []