All threads / Add image attachment to user post and server via AWS S3

Ask A Question

Notifications

You’re not receiving notifications from this thread.

Add image attachment to user post and server via AWS S3

Simon Cooper asked in Javascript

Hello.

I have a RoR 5.1 app, with an existing form that allows users to add a post to my app. However I want them to be able to include an image as an attachment. I'd like to save the image to S3, and I'm thinking of using React to do this. Can anyone point me in the direction of a good tutorial? I'm very new to React.

think this episode is useful for you: https://gorails.com/episodes/file-uploading-with-shrine?autoplay=1

from there you might go and add React.

Thanks Jack. I will have a watch of that.

Hey Simon,

Have you considered using AWS SDK and Rails Active Storage? I've recently started using it and it works amazingly well. Easy to install as well. Let me know if you need help!

Hey Martin.  I ended up just using Paperclip, in a regular erb view.  Very much does what I need for now.
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.