Dropzone, Stimulus and Rails with Active Storage


I am trying to implement a files preview and delete on Dropzone using stimulus.

I have followed this auto to setup stimulus with active storage but could not add a preview and file dele function inside the dropzone form field.

Has anybody already implemented such function ?

Thanks in advance

1 Like


How did you go with this? Want to post the progress you made so far so that we can see if we can help?


No progress so far. I m a bit lost.

I found this a pretty helpful intro https://gorails.com/episodes/rails-drag-and-drop-sortable, but probably doesn’t cover the complexities that you are having.

Is this what you’re trying to accomplish? https://youtu.be/fg_8qJ-su6A