We've moved discussions to Discord

Ready to Drop Active Storage

Dan Tappin
I was initially impressed by Active Storage but now I am ready to drop it completely.  There are a few bugs to work out (i.e. if you upload multiple files it wipes out all the previous files vs adding new ones.).

Now I have an issue where is uploads files even when validations fail leaving orphan files on your storage service:

https://github.com/rails/rails/issues/36892
https://stackoverflow.com/questions/57406370/rails-active-storage-with-nested-attributes-files-uploaded-even-when-validatio

Buyer beware - I am going to switch back to Carrierwave.  CW also allows you to organize your uploads.  Active Storage just dumps everything into one huge bucket.
Tabish Iqbal
Dan Tappin   - you can see how to fix it here -> https://gorails.com/forum/active-storage-has_many_attach-replaces-older-images-instead-of-appending-them-rails-6

Essentially, in rails 5 it didn't replace it but they made a change in Rails 6 however just need to add one line of code.
Notifications
You’re not receiving notifications from this thread.