/subfolder-rails-activestorage-blobs

Demonstration of storing ActiveStorage blobs in subfolders based on an environment variable

Primary LanguageRuby

Isolating Rails blobs in subfolders

This example application is configured to store uploaded ActiveStorage files into subfolders based on a deployment environment variable, such as $HEROKU_APP_NAME.

twin-apps

I've deployed two demonstration apps that show the internal key to demonstrate that the images are stored in different subfolders:

Read me on the blog post.

Files

The configuration files for blobs in subfolders are: