felixrieseberg/React-Dropzone-Component

How do I clear the form after submit?

rjuevesano opened this issue ยท 4 comments

I want to clear the form after submitting. How to do it?

i think you can access the file in event handler array in success parameter.
just put function there like success: yourfunc(dropZone) and remove the file in it

Hi! Any updates on this?
After destroying I can't use Dropzone component.

As a workaround: just use method removeAllFiles() from its prototype like so:
dropzoneObj.removeAllFiles()

https://www.dropzonejs.com/#dropzone-methods