Page 1 of 1

SVG not displayed inline

Posted: Aug 22, 2019 8:53 am
by wutsdis

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