[rt-users] Attachments
mixo
mixo at beth.uniforum.org.za
Fri Aug 3 04:21:19 EDT 2001
The file "WebRT/html/Ticket/Attachment/dhandler" has the following
lines:
++++++++++++++++++++++++++++++++++++++++++++++++++
my $content_type = $AttachmentObj->ContentType || 'text/html';
$r->content_type($content_type);
$m->out($AttachmentObj->Content);
$m->abort;
+++++++++++++++++++++++++++++++++++++++++++++++++++
What exactly does "$m-o>ut(....)" do? How is it defined? In other
words, what is its return type (if it has one) , which arguments does
it take , etc? The whole point of this is to find out if an image can
actually be displayed using "$m->out(...)" . The problem we had with
"$m-out(...)" is that if the attachment was a jpeg (or any other
image),
then "Netscape (4.x and 6.x)" just displayed it as plain text .
Mixo
The above code is from an old version RT , rt-1-3-81, but is in
rt-2-0-4 as well.
More information about the rt-users
mailing list