[rt-users] Attachments

Jesse jesse at fsck.com
Sat Aug 4 01:32:16 EDT 2001


Uh. this code has changed significantly since RT 1.3.81.  Just today, I was
testing uploading jpegs into RT and displaying them via the webui.

        j


On Fri, Aug 03, 2001 at 10:21:19AM +0200, mixo wrote:
> 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.
> 
> 
> 
> 
> _______________________________________________
> rt-users mailing list
> rt-users at lists.fsck.com
> http://lists.fsck.com/mailman/listinfo/rt-users
> 

-- 
jesse reed vincent -- root at eruditorum.org -- jesse at fsck.com 
70EBAC90: 2A07 FC22 7DB4 42C1 9D71 0108 41A3 3FB3 70EB AC90

that's security the same way that asking for directions to topeka and
being told that a seal is a mammal is informative
					-robin at apocalypse.org




More information about the rt-users mailing list