Feature No Code Attached Yet
avatar pe7er
pe7er
28 May 2024

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:

  • Media > Options > Allow Extensions > add "svg"
  • Media > Options > Legal Image Extensions (File Types) > add "svg"
  • Media > Options > Legal MIME Types > add "image/svg+xml"

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.

avatar pe7er pe7er - open - 28 May 2024
avatar joomla-cms-bot joomla-cms-bot - change - 28 May 2024
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 28 May 2024
avatar pe7er pe7er - change - 28 May 2024
Labels Added: Feature
avatar pe7er pe7er - labeled - 28 May 2024
avatar pe7er pe7er - change - 28 May 2024
The description was changed
avatar pe7er pe7er - edited - 28 May 2024
avatar woluweb woluweb - change - 28 May 2024
The description was changed
avatar woluweb woluweb - edited - 28 May 2024
avatar woluweb woluweb - change - 28 May 2024
The description was changed
avatar woluweb woluweb - edited - 28 May 2024
avatar Fedik
Fedik - comment - 28 May 2024

Please try #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 :)

Add a Comment

Login with GitHub to post a comment