ActionText - Setting the ActiveStorage servie?

ActiveStorage allows for setting a ‘service’ for a class:

has_many_attached :images, service: :local

Is there a way to do that for has_rich_text or for actiontext as a whole? I want to upload files to s3 across the app, but upload images in ActionText to a CDN. I can’t find anything in the API docs and haven’t figured out a creative/hacky way to do it yet. :slight_smile:

I see this is fixed in ActionText::TagHelper in rails version 7.1.2

You can then set the controller for direct upload in your rich_text_area: <%= form.rich_text_area :content, data:{direct_upload_url:'/cms/direct_uploads'} %>

…and create a new controller that responds to direct_uploads however you’d like