Contribution Date
Technology
Contribution Project
Contribution Details
I have checked the "MR !11" working fine with the field type "managed_file".
Please check the below steps:
- Install and enable the Menu Link Attributes module.
- Go to the configuration page "/admin/config/menu_link_attributes/config".
- Add the "managed_file" field as per the below code:
icon-attr: label: 'icon label' type: managed_file upload_location: 'public://module-images/menu-link-images/' file_validate_extensions: 'gif png'
The "file_validate_extensions" key was added to the patch. so we can restrict the file with different extensions.
Please check the after image.
It will not allow a jpg file.
It will allow only png and gif files.
Issue Status
Reviewed and Tested by Community
Contribution Issue Link
Files count
3
Patches count
0