Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
After following these steps you should have a working image uploader. You can check out my project here. Github
Once I knew I wanted to upload images I stated to look around for different ways to do so. I came across a gem named shrine which can be found here https://shrinerb.com/. This is were the hard part came in. Aside from installing the gem like normal, there was a second step that needed to be done to allow images to be rendered. I needed to install https://imagemagick.org/index.php ImageMagick onto my system. After this I was able to add images.
Related posts
- I've done a mistake when I've chosen ActiveStorage (Rails 7. Start Kit, Release 1.7)
- If you use shrine, lock net-protocol to < 0.2.0 for now
- is it possible to convert a json string into a StringIO or other file-like object?
- Shrine Photo Uploader – Galeria de Fotos
- [Poll] How do you handle file attachments in your Rails app in 2023?