Search code examples
ruby-on-railsamazon-s3rails-activestorage

Unknown keyword: content_type in active storage 5.2.1.1


If you update rails to 5.2.1.1 to avoid a potential bug in active storage (info released around 27. November 2018) then be advised that this causes a bug when uploading files to Amazon S3.

ArgumentError: unknown keyword: content_type

Can be fixed by upgrading rails in your gemfile to

gem 'rails', '5.2.2.rc1'

Solution

  • Upgrade to

    gem 'rails', '5.2.2.rc1'