[rt-devel] Download option in ticket history
Andy Kirkham
andy at synergynewmedia.co.uk
Thu Mar 20 11:59:01 EST 2003
Hi all
Just start out by saying excellent product. Used RT1
for a long time, RT2 is even better.
However, I noticed something that kinda got me a bit.
When viewing a ticket history, attachments can be
"downloaded" from the web interface. However, on my
browser (IE6) rather than save to disk, it attempts
to open it in the browser window (we mainly get pdf
and doc files).
I'd rather it opened the "save as" dialogue and saved
to disk.
To do this I hacked.......
WebRT/html/Ticket/Attachment/dhandler
and this was the change I made
#SetContentType($content_type);
SetContentType("application/force-download\nContent-disposition:
attachment\nContent-type: $content_type");
Now, I'm no real perl hacker and I know that that code up there is well
ugly but it works for me and my horid IE. I'm sure there's a better
(proper?) way to do this that could make it into some future version?
(oh, btw, I'm running 2.0.15)
Just thought I mention it. Keep up the good work!
cheers
Andy
More information about the Rt-devel
mailing list