can be reproached in many places, but quickest is to create a new Article in Joomla 4 Admin
Go to the Images and Links Tab
Click Select to launch Media Manager
Select a non-image, like a 4Mb CSV file
(enter title of the article to complete validation)
Click Save
Image selected should fail validation before the article saves, maybe "non image types" should not selectable in the first place? but certainly it should be validated "as an image" on save of the article because the value of this field is used on the frontend and is rendered in HTML.
Article saves.
If this was a menu link we were creating, we could choose a "link image" using the same kind of component widget, then on the frontend we would end up with html like
Labels |
Added:
?
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2021-06-28 15:42:45 |
Closed_By | ⇒ | Quy |
Please test #34634 (comment)
At least it is loaded lazy, the csv file ;-)