D11: Upload validators have changed

Created on 26 April 2025, 4 days ago

Problem/Motivation

When a sub-field in an image field, some errors are triggered when uploading a file.
As per change records https://www.drupal.org/node/3363700 β†’ , an update is required to the ImageWidget.php file:
'file_validate_is_image' => 'FileIsImage'
'file_validate_image_resolution' => 'FileImageDimensions' (with updated subarray)
'file_validate_extensions' => 'FileExtension'

These have been deprecated in D10.2+ and removed from D11.

Proposed resolution

Attached patch is a starting point, MR is coming.

πŸ› Bug report
Status

Active

Version

3.1

Component

Code

Created by

πŸ‡«πŸ‡·France PhilY πŸ‡ͺπŸ‡ΊπŸ‡«πŸ‡· Paris, France

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024