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

Ask A Question

Notifications

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 http://www.dropzonejs.com/ ?
Join the discussion

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

Join 37,629+ 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.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2020 GoRails, LLC. All rights reserved.