dropzone
dropzone copied to clipboard
Reloading Dropzone after deleting image rails ajax
Hi everybody,
I user dropzone with rails and active storage.
After uploading a file, i display the uploaded file under the form dropzone using Ajax. I set an option 'delete the image' for each files, for which i use ajax too.
My Dropzone is declared in a file images.js After uploading an image, i display it through a file create.js.erb After deleting an image, i render through a destroy.js.erb
The problem is that dropzone doesn't refresh regarding the actual state.
Does anybody have an idea ?
Thx