How To Empty The Dropzone Modal After Submitted In Reactjs?
I was wondering how can I empty the files inside on dropzone after it is already saved in the server and the database? My problem is when I submitted it maintain the files on the d
Solution 1:
Dropzone has a method removeAllFiles
that deletes all files that are currently in dropzone instance (the usage is something like Dropzone.removeAllFiles()
).
You'd want to call in the callback that is invoked when you have finished uploading your files to the server.
You might also be interested this tutorial on how to delete files.
Post a Comment for "How To Empty The Dropzone Modal After Submitted In Reactjs?"