CMS MADE SIMPLE FORGE

CMS Made Simple Core

 

[#11673] FilePicker will not show svg images, when in the Content Manager

avatar
Created By: Daniell (MadLax)
Date Submitted: Wed Dec 13 19:03:26 -0500 2017

Assigned To: Fernando Morgado (JoMorg)
Version: 2.2.4
CMSMS Version: 2.2.4
Severity: Minor
Resolution: Fixed
State: Closed
Summary:
FilePicker will not show svg images, when in the Content Manager
Detailed Description:
When you want to add a svg image to a page, it will not show any svg images or
upload them.

As in this age of mobile phones/internet of things the use of compressed svg
icons/logos, a must!!

As I don't post bug report without not having fix for it. 
It took a hour, as I don't no cmsms that good, but I tracked it back to a core
class

You can fix this by going to lib/classes/class.FileTypeHelper.php on line 39 add
'svg' to private $_image_extensions array

Like this:
private $_image_extensions =
['jpg','jpeg','bmp','svg','wbmp','gif','png','webp'];

It was missing the svg extension.
Hoop that this helps fixing this problem. :P

Grtz, MadLax


History

Comments
avatar
Date: 2020-06-13 09:44
Posted By: Fernando Morgado (JoMorg)

Fixed in revision #11673, thanks.
      
avatar
Date: 2020-06-13 09:47
Posted By: Fernando Morgado (JoMorg)

Correction: At revision: 12527
      
avatar
Date: 2020-11-03 14:26
Posted By: Rolf (rolf1)

CMSMS 2.2.15 has been released
      
Updates

Updated: 2020-11-03 14:26
state: Open => Closed

Updated: 2020-06-13 09:44
resolution_id: => 7
severity_id: 2 => 3
assigned_to_id: 100 => 12532