10 Experience
0 Lessons Completed
0 Questions Solved


Posted in Direct Uploads with ActiveStorage Discussion

Thanks for this episode, this was really interesting !
I still have a question though, what about direct upload validations ? For example what if you want to make sure that your users can't upload files that are too big or what if you want to accept only "image/png" format? I believe this should be done at AWS S3 level as file are uploaded directly to S3 and not going through the Rails application. Do you know how to do this ?

logo Created with Sketch.

Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

© 2022 GoRails, LLC. All rights reserved.