I have a question about how to render PDF attachments to tickets inline, rather than forcing the user to download them.
My setup: I have set "render_unsafe_content = true" in the [attachments], [browser], and [wiki] sections in my trac.ini file. I attach a PDF document to a ticket using the wiki markup "[raw-attachment:mydoc.pdf]". When I attach a document using this syntax to a wiki page, it works as expected: I click on the link for the attachment, and my browser displays the PDF file. However, when I use the exact same syntax in a ticket, I click on the the link for the PDF attachment in the ticket, and I get the "*HTML preview not available*, since no preview renderer could handle it. Try downloading the file instead" message instead. Is this a bug, or intended? Am I missing some configuration piece? As far as I can tell, there's no "render_unsafe_content" parameter I can set for [ticket]. TIA, -- Scott -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/trac-users/-/Vq3Fil8CslQJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
