Attachment viewing

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
mhonmon23
Posts: 76
Joined: 22 Sep 2010, 10:43

Attachment viewing

Post by mhonmon23 »

Hi,

How can I disable auto view of attachments?
e.g. Images
mhonmon23
Posts: 76
Joined: 22 Sep 2010, 10:43

Re: Attachment viewing

Post by mhonmon23 »

Please check the attachment.

I would like to disable this viewing.
Attachments
viewing.png
viewing.png (37.23 KiB) Viewed 14118 times
atrol
Site Admin
Posts: 8539
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Attachment viewing

Post by atrol »

Add the following line to file config_inc.php

Code: Select all

$g_preview_attachments_inline_max_size = 0;
Please use Search before posting and read the Manual
mhonmon23
Posts: 76
Joined: 22 Sep 2010, 10:43

Re: Attachment viewing

Post by mhonmon23 »

Thanks atrol.. Got it
mhonmon23
Posts: 76
Joined: 22 Sep 2010, 10:43

Re: Attachment viewing

Post by mhonmon23 »

Hi atrol,

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

Thanks
atrol
Site Admin
Posts: 8539
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Attachment viewing

Post by atrol »

maybe you like the way it's realized in next version 1.3 where you can hid/unhide every attachment
Attachments
attachments in version 1.3
attachments in version 1.3
attachments.png (69.19 KiB) Viewed 13936 times
Please use Search before posting and read the Manual
mhonmon23
Posts: 76
Joined: 22 Sep 2010, 10:43

Re: Attachment viewing

Post 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
RcCluster
Posts: 20
Joined: 02 Jan 2011, 22:47

Re: Attachment viewing

Post by RcCluster »

Hi atrol,

this preview seems available only for pictures.

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

Thanks
RcCluter
atrol
Site Admin
Posts: 8539
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Attachment viewing

Post 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
Please use Search before posting and read the Manual
M@rce
Posts: 99
Joined: 05 May 2011, 20:46
Location: Montevideo - Uruguay

Re: Attachment viewing

Post 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?
"La inteligencia consiste no sólo en el conocimiento, sino también en la destreza de aplicar los conocimientos en la práctica."
Aristóteles
Post Reply