Page 1 of 1

SVG not displayed inline

Posted: 22 Aug 2019, 13:53
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.

Re: SVG not displayed inline

Posted: 11 Sep 2019, 13:02
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. :(