? No Code Attached Yet
avatar NicolasDerumigny
NicolasDerumigny
25 Feb 2023

What needs to be fixed

Add webp and avif (or the media configured by the user in the global parameters) to here.

Why this should be fixed

Images cannot be chosen in WEBP or AVIF format with this field.

How would you fix it

Add $|\.webp$|\.avif to the string in libraries/src/Form/Field/ImagelistField.php

Side Effects expected

None

avatar NicolasDerumigny NicolasDerumigny - open - 25 Feb 2023
avatar joomla-cms-bot joomla-cms-bot - change - 25 Feb 2023
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 25 Feb 2023
avatar chmst chmst - change - 25 Feb 2023
Labels Added: ?
avatar chmst chmst - labeled - 25 Feb 2023
avatar chmst
chmst - comment - 25 Feb 2023

Thanks for your suggestion! As you already know how to resolve your request, would you like to make yourself a a PR for that? A more flexible solution could be replacing the hard coded list by a user defined list of allowed types.

avatar alikon alikon - change - 26 Feb 2023
Status New Closed
Closed_Date 0000-00-00 00:00:00 2023-02-26 06:48:50
Closed_By alikon
avatar alikon
alikon - comment - 26 Feb 2023

closing as we have a pr #39942

avatar alikon alikon - close - 26 Feb 2023

Add a Comment

Login with GitHub to post a comment