Page 1 of 1

Attachment viewing

Posted: 07 Oct 2010, 11:08
by mhonmon23
Hi,

How can I disable auto view of attachments?
e.g. Images

Re: Attachment viewing

Posted: 07 Oct 2010, 11:10
by mhonmon23
Please check the attachment.

I would like to disable this viewing.

Re: Attachment viewing

Posted: 07 Oct 2010, 11:12
by atrol
Add the following line to file config_inc.php

Code: Select all

$g_preview_attachments_inline_max_size = 0;

Re: Attachment viewing

Posted: 07 Oct 2010, 11:13
by mhonmon23
Thanks atrol.. Got it

Re: Attachment viewing

Posted: 08 Feb 2011, 22:54
by mhonmon23
Hi atrol,

How about when user click it will open to new browser tab for viewing?

Thanks

Re: Attachment viewing

Posted: 09 Feb 2011, 21:42
by atrol
maybe you like the way it's realized in next version 1.3 where you can hid/unhide every attachment

Re: Attachment viewing

Posted: 10 Feb 2011, 16:10
by mhonmon23
the view is too small if I attached bigger picture. Anyway I customize this and created another option to show view in another page in big view.
Thanks atrol

Re: Attachment viewing

Posted: 17 Apr 2011, 14:05
by RcCluster
Hi atrol,

this preview seems available only for pictures.

What about other file formats like pdf, OpenOffice, FreeMind, etc.?

Thanks
RcCluter

Re: Attachment viewing

Posted: 18 Apr 2011, 06:52
by atrol
RcCluster wrote: What about other file formats like pdf, OpenOffice, FreeMind, etc.?
It's not that easy: The preview of images is done by the browser. This feature is not available the same way for other formats.
The rendering of the preview has to be created at server side.
You can enter a feature request for this at http://www.mantisbt.org/bugs

Re: Attachment viewing

Posted: 21 Nov 2011, 15:15
by M@rce
Hi,
I did an update in mantis, and now (in my new version 1.2.5) i don't see attachment file in a navegator new tab like before the update. Do you know any line in config_inc to add?