SVG not displayed inline

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
wutsdis
Posts: 4
Joined: 22 Aug 2019, 13:44

SVG not displayed inline

Post by wutsdis »

Hello,

Software used on the server is mantisbt-2.21.1, php-7.3, mariaDB10.4, apache2.4


For some reason, the attached SVG images are not shown. The attachments are stored on the DISK.

In conifg_inc.php I have added $g_preview_image_extensions = array('bmp', 'png', 'gif', 'jpg', 'jpeg', 'svg');

Is there something else that I'm missing? The SVG preview is working when I drop a file in the upload field but after uploading, it is not shown inline.
wutsdis
Posts: 4
Joined: 22 Aug 2019, 13:44

Re: SVG not displayed inline

Post by wutsdis »

I see that for the attached SVG images the ["file_type"]=> string(10) "text/plain" and for JPGs it is ["file_type"]=> string(6) "binary".

I have tried to modify it when an SVG is present and set $p_attachment['file_type'] = 'binary'; but still no change even then. :(
Post Reply