Closed (fixed)
Project:
Custom Field
Version:
3.1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Apr 2025 at 15:11 UTC
Updated:
15 May 2025 at 04:54 UTC
Jump to comment: Most recent
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.
Attached patch is a starting point, MR is coming.
| Comment | File | Size | Author |
|---|
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
philyComment #3
apmsooner commentedThanks, i'll review and ensure its fixed for next release.
Comment #5
philyComment #7
apmsooner commented