Skip to main content

Add image attachment to user post and server via AWS S3

Javascript • Asked by Simon Cooper

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.

Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 24,647+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.