From 9e70cc2996465c519273a5c747a077e20eea19ca Mon Sep 17 00:00:00 2001 From: Bram Jetten Date: Sat, 26 Aug 2023 22:13:04 +0200 Subject: [PATCH] Add files: [] to permitted image_params - Fixes #1295 --- app/controllers/spina/admin/images_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/spina/admin/images_controller.rb b/app/controllers/spina/admin/images_controller.rb index d91715c6c..b3fa67bae 100644 --- a/app/controllers/spina/admin/images_controller.rb +++ b/app/controllers/spina/admin/images_controller.rb @@ -97,7 +97,7 @@ def set_media_folder end def image_params - params.require(:image).permit(:media_folder_id, :file) + params.require(:image).permit(:media_folder_id, :file, files: []) end end end