Build a Blog with Rails Part 17: Handling File Uploads with ActiveStorage & Amazon S3

  Рет қаралды 8,098

GoRails

GoRails

Күн бұрын

Пікірлер: 31
@cakeintech
@cakeintech Жыл бұрын
Awesome! You have no idea how much your video content has come to my rescue! Your explanation of active storage with Amazon S3 was top-notch and incredibly helpful. Thank you so much!
@GorailsTV
@GorailsTV Жыл бұрын
Glad you found it helpful!!
@klnmn3722
@klnmn3722 9 ай бұрын
Set this up with no issues, awesome tutorial. I actually smiled when you talked about how difficult it was because you made it seem so easy. Deeply appreciate all the help you put out in this series for free!
@GorailsTV
@GorailsTV 9 ай бұрын
That makes my day!
@oli2016
@oli2016 Жыл бұрын
Just used this in the wild, thanks Chris
@GorailsTV
@GorailsTV Жыл бұрын
Excellent! Hope it went smoothly!
@olegmitnik9617
@olegmitnik9617 Жыл бұрын
It was hard but I've gone through this! Thank you! 💯👍 GoRails🚀
@GorailsTV
@GorailsTV Жыл бұрын
Great job!!
@seb-ssabes
@seb-ssabes 8 ай бұрын
Thank you so much! This content is Gold!
@GorailsTV
@GorailsTV 8 ай бұрын
Thanks!!
@Mikevets
@Mikevets 8 ай бұрын
When I click EDIT, the previously save image goes away. How can I prevent this from being removed?
@LibertarianSeeker
@LibertarianSeeker Жыл бұрын
Great series! Thanks so much!
@rafaeldev77
@rafaeldev77 4 ай бұрын
And about variants URL? Can I create a variant versions in this setup? How can I offer a s3 direct link for variants?
@paulthemrgreen
@paulthemrgreen Жыл бұрын
Hello and thanks for the video! Question: Where all the other files of your database are stored. Like the text of the posts not only the images or users data?
@GorailsTV
@GorailsTV Жыл бұрын
Depends on your database but they will always store it on disk in the databases data directory.
@paulthemrgreen
@paulthemrgreen Жыл бұрын
So, do you need another s3 bucket for example users credentials or they stored in a postgres database?
@paulthemrgreen
@paulthemrgreen 10 ай бұрын
Hey go rails! I have a question If I use action text for some blog post. Since these blog posts are not many can instead of uploading files in Amazon s3, I can store them in my app? Thanks!!
@GorailsTV
@GorailsTV 10 ай бұрын
You can use the file store but your hosting service would need persistent disk storage in production. So a place like Heroku wouldn't work because they run everything in containers but a hosting service like Hatchbox.io that we run does support persistent disk storage.
@PurelyDef
@PurelyDef Жыл бұрын
This was what i was looking for, thank you! I’m using rails as a backend and returning a link to my images to render in my react app. What’s the correct way to get the s3 url? I originally used rails_blob_path when everything was local, but I believe object.image.url is the way to get the s3 link. But I saw someone say that the predecessor to this, object.image.service_url was frowned upon. Is that still the case?
@MrJackrabbit101
@MrJackrabbit101 11 ай бұрын
Hi! I am really enjoying your series so far. When I upload an image while editing a blog post, the image shows. When I update the blog post, the image doesn't show. Looking into the console, I am getting the following error" "ActiveStorage::Representations::RedirectController#show wrong number of arguments(given 1, expected 0) ". I made sure I had vips installed and tried installing different versions of image_processing (where the error comes from) and nothing has worked so far. Any help would be appreciated and thanks!
@GorailsTV
@GorailsTV 11 ай бұрын
That's a good question. Share the full stacktrace if you get a chance.
@MakeRandomVids
@MakeRandomVids Жыл бұрын
If my app is to have users, and users uploading images under their account AND only owner of images can access/view the images - Will the ACL be disalbed?
@GorailsTV
@GorailsTV Жыл бұрын
Leave them as private.
@Mw-od6sd
@Mw-od6sd Жыл бұрын
My god it’s Litteraly a hell storm just to connect the app to the damn bucket so frustrating
@GorailsTV
@GorailsTV Жыл бұрын
Good old Amazon for you!
@Mw-od6sd
@Mw-od6sd Жыл бұрын
Hey I actually went through it slowly and finally got my rails app connected to the bucket . THANK YOU !
@Mw-od6sd
@Mw-od6sd Жыл бұрын
But I need your help really badly I am having serious trouble now
@Mw-od6sd
@Mw-od6sd Жыл бұрын
I tried sending the urls back to the frontend . And it’s not recognizing them and it’s crashing on frontend. I used rails_blob_path , rails_blob_url and more with disposition: “attached” Only sending the service url works but then it won’t download when plugged into the href (I have download attribute in href tag ) HELP PLEASE !!!
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.
Ruby on Rails #21 Active Storage With Amazon S3 Cloud Storage
16:11
ActiveStorage with Rails 7 | Upload Files in Rails
19:19
APPSIMPACT Academy
Рет қаралды 6 М.
EASY Image Uploads in Rails with ActiveStorage
15:55
Ken Greeff
Рет қаралды 221
Active Storage For File Uploads | Ruby on Rails 7 Tutorial
20:51
User Avatars with Rails Active Storage
11:48
GoRails
Рет қаралды 15 М.
Image Uploads With Rails & Active Storage (Step-by-Step Guide)
16:00
Jesus Castello
Рет қаралды 12 М.
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН