Ask A Question


You’re not receiving notifications from this thread.

Thoughts on the best way to upload images via Vuejs front end with Rails 5.2 API backend

Simon Cooper asked in Javascript
I have an app I've just updated to Rails 5.2 and migrated away from Paperclip for image uploads to S3 to the new ActiveStorage feature.  I am able to display some uploaded photos I did with the html version of the site, but I don't know how to access the Blob via VueJS to display the images in the database.  That then also leads me to the second question here, what would be the best way to upload images through a VueJS front end?  Would I continue to try and use Active Storage, or would I swap to something like ?
Join the discussion
Create an account Log in

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

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

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