All threads / Dropzone with Shrine
Ask A Question

Notifications

You’re not receiving notifications from this thread.

Dropzone with Shrine

Tim Dowling asked in Javascript

I just switched to shrine as Active Storage doesn't support custom file paths. At my day job a question on security assessments requires blob storage to have some sort of tenant separation and i thought it would be useful to set it up for my project.

Has anyone had any luck connecting shrine and dropzone js? I wasn't able to pass the value via the stimulus controller via an update action. How could you take exactly what would have been submitted from the file_field and submit via ajax?

Tim did you had any luck with this? I am in your same situation and the only resource I found it's an old article on Medium https://medium.com/@stephendolan/rails-shrine-dropzonejs-f9d0944d17e3

How could you use ajax to submit exactly what would have been entered into the file field? https://medium.com/@stephendolan/rails-shrine-dropzonejs-f9d0944d17e3/gmail

Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 64,614+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

    © 2022 GoRails, LLC. All rights reserved.