Category "rails-activestorage"

File Attachment Management for Rails and Oracle Cloud - OCI Object storage

Looking for a RAILS solution for OCI Object Storage, we currently are using paperclip on AWS with S3. Paperclip is depreciated and Active storage has no documen

ActiveStorage::IntegrityError (Must supply api_key)

I have been building a Rails app with image uploads for user avatars and until now there were no problems. The app is hosted on Heroku and the service I am usin

How to use Simple Form and Direct Upload ActiveStorage

I'm having a trouble when I try to use Simple Form gem for upload video. I'm using ActiveStorage and local storage for this. My form looks like this: = simple_

How to resize images before uploading with Active Storage (linked with AWS)

I try to use Active Storage with Amazon Web Services, instead of Carrierwave and Cloudinary. With Carrierwave I had some features that allow to resize images b

What is the correct way to update images with has_many_attached in Rails 6

I have a Rails 6 app that uses Active Storage to store multiple images to a model (Activity) with has_many_attached. I don't understand how to append extra im

What is the correct way to update images with has_many_attached in Rails 6

I have a Rails 6 app that uses Active Storage to store multiple images to a model (Activity) with has_many_attached. I don't understand how to append extra im

Make Active Storage has_one_attatched not null

I have a model with active storage set up with has_one_attached and some users have hit submit without adding a file to the form. Before I add a validation to t

Rails 7 Active Storage - how do I upload/add image(s) to list of existing images without overriding/purging existing images?

I have got a Listing model to which I upload multiple images. I just can't figure out how to upload additional images to each Listing without purging/replacing