joomla / joomla-cms

Home of the Joomla! Content Management System
https://www.joomla.org
GNU General Public License v2.0
4.75k stars 3.64k forks source link

[5.2] Usability: Media Manager - Allow SVG images #43550

Closed pe7er closed 3 weeks ago

pe7er commented 4 months ago

Problem identified

Currently

  1. it's not possible to use Joomla's Media Manager to upload SVG images. When you try to upload an .svg you get an error message:

Image

  1. SVG images uploaded via FTP are not shown in the media manager.

The question of how to upload .svg images is frequently asked in Joomla forum: https://forum.joomla.org/viewtopic.php?t=998705 https://forum.joomla.org/viewtopic.php?t=975327

Proposed solution

Add support for .svg images in Joomla to Upload and Display in media manager (and so to use anywhere like in Articles etc).

Currently, users have to configure the Media Manager manually as follows:

The idea is to have this added by default for new installations (probably not on existing installations, unless there is for exampla a check that it has not already been added manually).

Note: As far as we know, the Joomla core already checks SVG content for potentially harmful code. When adding this feature we should make extra sure that this works correctly to not introduce security issues.

Fedik commented 4 months ago

Please try https://github.com/joomla/joomla-cms/pull/38536 You should get a better message why your SVG is not allowed.

In general there already multiple issues about allowing SVG. I not remember what was the conclusion, need to search :)