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.
SVG not displayed inline
Moderators: Developer, Contributor
Re: SVG not displayed inline
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.
I have tried to modify it when an SVG is present and set $p_attachment['file_type'] = 'binary'; but still no change even then.