[rt-users] Help with scrip for Custom Field

Kenneth Crocker kfcrocker at lbl.gov
Fri Aug 5 18:18:54 EDT 2011


To all,

I have a Custom Field with the type=Upload multiple images. I want to put in
an attachment (gif or jpeg) from an email.
The scrip I have written uses this to get the pic:

my $trans = $self->TransactionObj;
my $pic = $trans->Attachments->First->ContentType(Value => 'image/gif');
(this 'gif' variation was merely to try the concept. I can try variations
for jpeg later).

The result was no pic uploaded and next to the CF name (on the ticket
display) was 'multipart/mixed'.

Inside the Update screen, these was the name of the CF followed by a
checkbox and the 'multipart/mixed'.

Obviously I'm missing something. I went to Attachments_Overlay.txt and
didn't really see anything that helped (obviously - duh).

Any help would be appreciated.

Kenn
LBNL
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20110805/f7da5e12/attachment.htm>


More information about the rt-users mailing list