Show attachment in new browser card
Moderators: Developer, Contributor
Show attachment in new browser card
Hi, I have a question about view attachment option available from view specific issue section. We have 2 options here. When we click on attached file name we can download attachment, but if we click on '^' button mantis does the same (we can download attachment) but also open a new blank card. Is there any way in this case to display attachment (if it is possible) in new card before user click 'open' or 'save'? The actual question is: is there any way for user to see attachment in browser before he downloads it? Don't know that is the right place for this topic (maybe 'custimzation' is better section for this kind of topics). Thank for your replies.
Re: Show attachment in new browser card
Some attachments can be previewed (must be supported by browser).
This is the default list that you can override in your config_inc.php
The preview is displayed if the size is less than a certain size.
Default is
This is the default list that you can override in your config_inc.php
Code: Select all
$g_preview_image_extensions = array( 'bmp', 'png', 'gif', 'jpg', 'jpeg' );Default is
Code: Select all
$g_preview_attachments_inline_max_size = 256 * 1024;