Fix SVG upload failure caused by getimagesize() validation

getimagesize() does not support SVG files, causing uploads to fail with "not a valid image" when SVG is an allowed type. Skip raster image validation and dimension capture for image/svg+xml, and add an early return in validateImageContent() that checks SVGs against allowed MIME types only.

Fixes #3601096.

Merge request reports

Loading