Paragraphs icon file size restriction

Created on 5 September 2024, 2 months ago

I have been trying to find any similar issue to this without success. I can not believe that I am the only person to have noticed this so could a kind maintainer please redirect me if necessary?

Problem/Motivation

The Drupal Paragraphs module permits the addition of an icon image file. It would appear that there is no file restriction on this icon file size which can cause a problem since the icon is then embedded into the config code under 'icon_default'. This has been surfaced where screenshots had been used as icon files without realising that the files had been exported to the configuration files sizes exceeding 4.096Mb and thus affecting any configuration management actions.

Steps to reproduce

Install paragraphs modules
Navigate to Structure > Paragraphs
Create a new paragraph
Add a title
Add an icon
Save
Export the configuration of that created paragraph and you will see that the icon is now embedded in code.

Proposed resolution

Place an image size restriction on the image upload field

Feature request
Status

Active

Version

1.18

Component

Code

Created by

🇬🇧United Kingdom macjules

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024