HTML-Picture-Attachement-Size

94 views
Skip to first unread message

bejot22

unread,
Nov 7, 2012, 7:15:56 AM11/7/12
to trac-...@googlegroups.com
Hello,

I am experiencing a problem with pictures in the trac attachements.

When I upload a image file larger than 262144 bytes the trac-solutions denies to display the image inside the browser.

The error-message is as follows:


File classes.png, 424.9 KB (added by myuser, 8 days ago)
My Image Title
 

HTML preview not available, since the file size exceeds 262144 bytes. Try downloading the file instead.


Is there a posibility to change this maximum display size?

Thank you in advance
bejot22

Voelker, Bernhard

unread,
Nov 7, 2012, 8:41:31 AM11/7/12
to trac-...@googlegroups.com
bejot22 wrote (Wednesday, November 07, 2012 1:16 PM):
> HTML preview not available, since the file size
> exceeds 262144 bytes. Try downloading the file instead.
>
> Is there a posibility to change this maximum display size?

Isn't it this (in trac.ini)?

[mimeviewer]
max_preview_size = 524288

Have a nice day,
Berny

mic...@modprods.com

unread,
Feb 13, 2025, 2:59:54 AMFeb 13
to Trac Users
Has ini spec changed in 1.6?

Regardless what I put in trac.ini

getting "HTML preview not available, since the file size exceeds 256.0 KB"
e.g.

[mimeviewer]
max_preview_size = 52428800

Michela

mic...@modprods.com

unread,
Feb 14, 2025, 2:42:50 AMFeb 14
to Trac Users
This workaround seems to be do it.

[mimeviewer]
mime_map = text/x-dylan:dylan,text/x-idl:ice,text/x-ada:ads:adb, image/jpeg: text/html,image/png: text/html

Michela
Reply all
Reply to author
Forward
0 new messages