SVG not displayed inline

Get help from other users here.

Moderators: Developer, Contributor

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

SVG not displayed inline

Post by wutsdis » Aug 22, 2019 8:53 am

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: Aug 22, 2019 8:44 am

Re: SVG not displayed inline

Post by wutsdis » Sep 11, 2019 8:02 am

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