#6447 closed enhancement (wontfix)
show content of attached doc/xls/pdf/.. files
Reported by: | anonymous | Owned by: | Jonas Borgström |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | attachment | Version: | |
Severity: | normal | Keywords: | pdf, word, doc |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
would be nice to have a macro (like the Makro), which shows the content of an attached file
Attachments (0)
Change History (24)
comment:1 by , 17 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
comment:2 by , 17 years ago
Resolution: | wontfix |
---|---|
Status: | closed → reopened |
this needs be put into the core if trac want to be more robust a better ticket management system
follow-up: 4 comment:3 by , 17 years ago
Component: | general → attachment |
---|---|
Milestone: | → 0.10.5 |
Priority: | normal → highest |
Severity: | normal → major |
honestly who doesn't attach these types of files
comment:4 by , 17 years ago
Milestone: | 0.10.5 |
---|---|
Priority: | highest → normal |
Resolution: | → wontfix |
Severity: | major → normal |
Status: | reopened → closed |
follow-up: 9 comment:5 by , 17 years ago
Keywords: | pdf word doc added |
---|---|
Milestone: | → 0.10.5 |
Priority: | normal → high |
Resolution: | wontfix |
Severity: | normal → major |
Status: | closed → reopened |
So trac should be not extended to and integrated with other standard systems, most sane business use like word docs and pdf files?
comment:6 by , 17 years ago
Resolution: | → wontfix |
---|---|
Status: | reopened → closed |
Make a patch that implements this, and then we will talk. +1 on making this a plugin.
comment:7 by , 17 years ago
Milestone: | 0.10.5 → not applicable |
---|---|
Priority: | high → normal |
Severity: | major → normal |
comment:8 by , 17 years ago
Resolution: | wontfix |
---|---|
Status: | closed → reopened |
I don't think this is as complicated as a plugin. Trac just need to recognize MIME content type of the page by extension (.pdf, .doc, .xls) and then set the content type. The content type determines how the browser or client interprets the page contents. The following are some of the content type values you can use:
application/msword application/msexcel application/pdf
I looked at the trac.ini file under mimiviewer but it isn't clicking for me. I think the mime_map needs changed like "text/x-dylan:dylan,text/x-idl:ice,text/x-ada:ads:adb :application/pdf:pdf "
comment:9 by , 17 years ago
Resolution: | → wontfix |
---|---|
Status: | reopened → closed |
Replying to henke.mike@gmail.com:
So trac should be not extended to and integrated with other standard systems, most sane business use like word docs and pdf files?
At my business (which is sane in some areas moreso than others) there are several people who use AutoCAD on a daily basis. Are you suggesting that attached AutoCAD files should be shown?
Supporting Word and PDF is one thing, but then where do you stop? Why not Excel spreadsheets? Why not Open Office documents? Presentations? Why, the Trac devs could just drop everything and spend all day writing platform independent engines to render every file format imaginable in HTML.
comment:10 by , 17 years ago
Good point. Maybe trac should be more friendly to customizing different attachments types inline (in browser) instead of actually implementing the specific attachment types. I still haven't found any good examples to do this and I bet the sane Trac devs actually do with their attachments whether being autoCAD, pdfs, doc, etc, which ever they use so they don't have to download the attachments everytime.
comment:11 by , 17 years ago
Er, there already is, in the form of IHTMLPreviewRenderer
. But you'd still have to write a custom implementation to display most any file format that isn't already supported. There's just no way around that. But the fact that that interface exists is why this would be a plugin candidate.
comment:13 by , 17 years ago
any examples of how to use iIHTMLPreviewRenderer with a supported and unsupported file formats? i searched the trac site and didn't find any except a brief mention [WikiContext]. thanks in advance
comment:14 by , 17 years ago
Resolution: | wontfix |
---|---|
Status: | closed → reopened |
comment:15 by , 17 years ago
Resolution: | → wontfix |
---|---|
Status: | reopened → closed |
comment:16 by , 17 years ago
great everyone is so helpful in answering questions, nice to know this community is so open and friendly
comment:17 by , 17 years ago
Resolution: | wontfix |
---|---|
Status: | closed → reopened |
I did get a suggestion. "dont use the direct way via trac my.doc but via web-server [http:/.../svn/my.doc]." couldn't this link be easily added to the attachment section of the ticket along with on the trac attachment linked page?
Or couldn't somehow the attachment/ticket use wiki format like to embed attachments similiar to images but like Object(sane.pdf) or Object(sane.doc)
comment:21 by , 17 years ago
Resolution: | → wontfix |
---|---|
Status: | reopened → closed |
If you want to include examples, prefix them with ! to disable the macro processing. For example, ![[Image(sane.jpg)]] produces [[Image(sane.jpg)]]
At any rate, if you want a macro to embed object tags, that's different, and I'm sure such a thing is already out there. But such a thing also has security risks, which is why it's probably not included in the core. Now please stop reopening this ticket.
comment:23 by , 12 years ago
Surely this doesn't really need too much product-specific effort, it can remain pretty generic.
As long as what Trac spits out is something like:
<object type="application/pdf" data="./path/to/attachment"><a href="./path/to/attachment">Attachment Name</a></object>
Then I don't see why there's such an aversion to this suggestion.
comment:24 by , 12 years ago
<object type="application/pdf" data="./path/to/attachment"> <a href="./path/to/attachment">Attachment Name</a> </object>
If the Trac admin thinks it's a security risk, then he/she can turn it off.
This will not go into Trac core. You should open a Request-a-Hack ticket on TracHacks.