J3 Issue ?
avatar coolcat-creations
coolcat-creations
5 Mar 2017

Steps to reproduce the issue

Setup the Media Manager Options to Allow svg, add svg suffix and Mimetype.
Upload the svg Files.

image

Set up an imagelist Field with the directory you uploaded the svg to.
The svgs are not displayed.

image

Edit: Same for Media-Field should i create a seperate issue for that?

avatar coolcat-creations coolcat-creations - open - 5 Mar 2017
avatar joomla-cms-bot joomla-cms-bot - change - 5 Mar 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 5 Mar 2017
avatar coolcat-creations coolcat-creations - edited - 5 Mar 2017
avatar coolcat-creations coolcat-creations - change - 5 Mar 2017
The description was changed
avatar coolcat-creations coolcat-creations - edited - 5 Mar 2017
avatar coolcat-creations coolcat-creations - change - 5 Mar 2017
The description was changed
avatar coolcat-creations coolcat-creations - edited - 5 Mar 2017
avatar dgt41
dgt41 - comment - 5 Mar 2017

You need to go to media manager options and manually add the svg type. It is not in the lists for security reason

avatar coolcat-creations
coolcat-creations - comment - 5 Mar 2017

I did, as said in the description of the issue. As you see in the first screenshot they are displayed in the Mediamanager itself...

avatar Bakual
Bakual - comment - 5 Mar 2017

Same for Media-Field should i create a seperate issue for that?

It's the same issue if it exists.

avatar laoneo
laoneo - comment - 7 Mar 2017

To allow only images is hard coded in the field itself https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/form/fields/imagelist.php#L40. Don't know if we should break up that filter and use the media manager setting instead.

avatar coolcat-creations
coolcat-creations - comment - 7 Mar 2017

I think we should always use existing settings, also ACL is based on MM...

avatar laoneo
laoneo - comment - 7 Mar 2017

The things is that the form field doesn't have any dependency to the media manager and also should not have. What we can do is to make this value as a parameter of the field itself.

avatar coolcat-creations
coolcat-creations - comment - 7 Mar 2017

So it´s not dependant of the ACL of the Extension the field is using?

avatar laoneo
laoneo - comment - 7 Mar 2017

No ACL is involved. Actually the list of allowed files is hardcoded. But we can make it configurable and then set it in custom fields from the media manager. I'm talking about this setting here
image

avatar joomla-cms-bot joomla-cms-bot - change - 7 Mar 2017
The description was changed
avatar joomla-cms-bot joomla-cms-bot - edited - 7 Mar 2017
avatar coolcat-creations
coolcat-creations - comment - 7 Mar 2017

yes that would be very helpful, thank you!

avatar franz-wohlkoenig franz-wohlkoenig - change - 30 Mar 2017
Category com_fields
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 4 Apr 2017

reminder @laoneo for comment


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/14356.

avatar joomla-cms-bot joomla-cms-bot - change - 4 Apr 2017
The description was changed
avatar joomla-cms-bot joomla-cms-bot - edited - 4 Apr 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 4 Apr 2017
Category com_fields com_fields com_media Feature Request UI/UX
avatar joomla-cms-bot joomla-cms-bot - change - 4 Apr 2017
The description was changed
avatar joomla-cms-bot joomla-cms-bot - edited - 4 Apr 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 4 Apr 2017
Priority Medium Very low
Status New Discussion
avatar laoneo
laoneo - comment - 4 Apr 2017

Is it somehow possible to assign that issue to me. Actually I don't have time to fix it, but it is no release blocker, so we can do it also in a later release.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 4 Apr 2017

can you give a 3.8-Milestone so it don't get lost?

avatar laoneo
laoneo - comment - 4 Apr 2017

3.8 should be only router but I guess I can do it in 3.7.1 or so

avatar joomla-cms-bot joomla-cms-bot - change - 4 Apr 2017
The description was changed
avatar joomla-cms-bot joomla-cms-bot - edited - 4 Apr 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 4 Apr 2017
Build staging 3.7.1
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 4 Apr 2017

added Build 3.7.1 in Issue Tracker.

avatar mbabker
mbabker - comment - 4 Apr 2017

Build on the tracker should be the version the issue was reported against, not a projected version where an issue is fixed.

avatar joomla-cms-bot joomla-cms-bot - change - 4 Apr 2017
The description was changed
avatar joomla-cms-bot joomla-cms-bot - edited - 4 Apr 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 4 Apr 2017
Build 3.7.1 staging
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 4 Apr 2017

set on "staging".

@laoneo don't know if / how to assign it to you – @mbabker? Can set "related to Issue" if this helps.

avatar mbabker
mbabker - comment - 4 Apr 2017
  1. You can't do assignments through the tracker, we aren't wired up to work with the assignees field on GitHub

  2. Assignees on GitHub is only team members with access to a repository, so even if we had that integration you can't assign this to Allon because he's not in a team with access to this repo

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 4 Apr 2017

thanks for Info @mbabker

avatar N6REJ
N6REJ - comment - 27 Aug 2017
avatar dgt41
dgt41 - comment - 27 Aug 2017

@N6REJ yep: #13499

avatar N6REJ
N6REJ - comment - 30 Aug 2017

@dgt41 webp is amazing! You need to think about when to use it on which image but MAN DOES IT MAKE A HUGE DIFFERENCE.

avatar brianteeman brianteeman - change - 25 Mar 2018
Labels Added: J3 Issue
avatar brianteeman brianteeman - labeled - 25 Mar 2018
avatar wilsonge wilsonge - change - 18 Aug 2018
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2018-08-18 10:38:48
Closed_By wilsonge
avatar wilsonge
wilsonge - comment - 18 Aug 2018

I'm going to close this as a more specific example of #14356

avatar wilsonge wilsonge - close - 18 Aug 2018
avatar coolcat-creations
coolcat-creations - comment - 18 Aug 2018

So now both are closed?

avatar wilsonge wilsonge - change - 18 Aug 2018
Status Closed New
Closed_Date 2018-08-18 10:38:48
Closed_By wilsonge
avatar wilsonge
wilsonge - comment - 18 Aug 2018

Sorry I linked to this issue by mistake. I meant to link to #16795

avatar wilsonge wilsonge - reopen - 18 Aug 2018
avatar wilsonge wilsonge - change - 18 Aug 2018
Status New Closed
Closed_Date 0000-00-00 00:00:00 2018-08-18 10:54:36
Closed_By wilsonge
avatar wilsonge wilsonge - close - 18 Aug 2018
avatar coolcat-creations
coolcat-creations - comment - 18 Aug 2018

But #16795 is about the media manger. this ist about com_fields - and those have independant settings like @laoneo states above.

avatar mbabker
mbabker - comment - 18 Aug 2018

It is the same root problem at the end of the day.

avatar coolcat-creations
coolcat-creations - comment - 19 Aug 2018

So we close all the issues regarding this and leave none open?

avatar wilsonge
wilsonge - comment - 19 Aug 2018

#16795 is still open and will not be closed

avatar coolcat-creations
coolcat-creations - comment - 21 Aug 2018

#16795 does not show the same issue.It's regarding existing images that are already uploaded and not shown. #16795 is an issue about uploading.

avatar hendrikbehncke
hendrikbehncke - comment - 1 Nov 2019

I'd really like to open this issue again. Like explained already, issue #16795 is not related to this here.
In this issue here it is about the media field that does not allow to pick svg image files that are already uploaded and available on the server. The filter what is considered to be an image file is hard coded to the media field in https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/form/fields/imagelist.php#L40
The Media Manager in Joomla already allows to upload svg image files and if uploaded it does also show these files. Why not allow these files to be picked in the form media field?

avatar sokoloff-rv
sokoloff-rv - comment - 12 Jun 2020

When you select an image through a field with the type "media", SVG format files are not displayed. Will this be fixed in the future?

avatar SemaphoreOxalis
SemaphoreOxalis - comment - 10 Aug 2021

Hi, still no option there or we miss something ? I know this Issue is closed, but can't understand why.

The 3.10 code still show $this->filter = '.png$|.gif$|.jpg$|.bmp$|.ico$|.jpeg$|.psd$|.eps$'; for the /libraries/joomla/form/fields/imagelist.php file. Maybe with a filter fields for better control on the permited extentions ?

Add a Comment

Login with GitHub to post a comment