Mantis: What can I change to automatically display attached images when viewing issues?

I can upload images in mantism problems. I would like to customize the mantis code or code to automatically display images (gif, png, jpg).

Has anyone been successful with this?

+2


source to share


1 answer


The behavior is controlled by a variable $g_preview_attachments_inline_max_size

in config_inc.php

According to the Mantis Guide :

This function applies to bmp, jpg, gif, and png files attached to errors. If the file size is less than the specified values, the actual image is also viewed with errors [...]



Although the manual states that the default is 0 (feature disabled), in Mantis 1.2.0 it is 256KB:

$g_preview_attachments_inline_max_size = 256 * 1024;

      

+3


source







All Articles