Show attachment in new browser card

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
caro
Posts: 11
Joined: 14 Jun 2013, 12:05

Show attachment in new browser card

Post by caro »

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.
atrol
Site Admin
Posts: 8572
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Show attachment in new browser card

Post by atrol »

Some attachments can be previewed (must be supported by browser).
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' );
The preview is displayed if the size is less than a certain size.
Default is

Code: Select all

$g_preview_attachments_inline_max_size = 256 * 1024;
Please use Search before posting and read the Manual
Post Reply