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:
Version: 2.2.4
CMSMS Version: 2.2.4
Severity: Major
Resolution: None
State: Open
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