Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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'
like image 380
Michael Schmitz Avatar asked Jan 28 '23 02:01

Michael Schmitz


1 Answers

Upgrade to

gem 'rails', '5.2.2.rc1'
like image 71
Michael Schmitz Avatar answered Feb 12 '23 09:02

Michael Schmitz