SpinaCMS / Spina

Spina CMS
http://www.spinacms.com
Other
2.19k stars 405 forks source link

UnpermittedParameters error when uploading images #1295

Closed Bramjetten closed 1 year ago

Bramjetten commented 1 year ago

When uploading an image in the media library, Rails will raise an UnpermittedParameters error when referencing image_params, even if we're not using that parameter directly (files)

Should either not use image_param in images#create or, add files: [] to image_params.