dropzone icon indicating copy to clipboard operation
dropzone copied to clipboard

Reloading Dropzone after deleting image rails ajax

Open iroshiva opened this issue 4 years ago • 0 comments

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

iroshiva avatar Apr 19 '21 11:04 iroshiva