Skip to content

Commit

Permalink
Add files: [] to permitted image_params - Fixes SpinaCMS#1295 (SpinaC…
Browse files Browse the repository at this point in the history
  • Loading branch information
Bramjetten authored Aug 26, 2023
1 parent 3560387 commit e5ec168
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/spina/admin/images_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e5ec168

Please sign in to comment.