Kevin,<br><br>I don't understand the term "limitdown", but I'll try to create a loop. Am I correct with the code <br>"Attachments->First->ContentType(Value => 'image/gif')" and should that be the main condition in the loop (got an example)?<br>
<br>Thanks.<br><br>Kenn<br>LBNL<br><br><div class="gmail_quote">On Mon, Aug 8, 2011 at 7:43 AM, Kevin Falcone <span dir="ltr"><<a href="mailto:falcone@bestpractical.com">falcone@bestpractical.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div></div><div class="h5">On Fri, Aug 05, 2011 at 03:18:54PM -0700, Kenneth Crocker wrote:<br>
> To all,<br>
><br>
> I have a Custom Field with the type=Upload multiple images. I want to put in an attachment<br>
> (gif or jpeg) from an email.<br>
> The scrip I have written uses this to get the pic:<br>
><br>
> my $trans = $self->TransactionObj;<br>
> my $pic = $trans->Attachments->First->ContentType(Value => 'image/gif'); (this 'gif' variation<br>
> was merely to try the concept. I can try variations for jpeg later).<br>
><br>
> The result was no pic uploaded and next to the CF name (on the ticket display) was<br>
> 'multipart/mixed'.<br>
><br>
> Inside the Update screen, these was the name of the CF followed by a checkbox and the<br>
> 'multipart/mixed'.<br>
><br>
> Obviously I'm missing something. I went to Attachments_Overlay.txt and didn't really see<br>
> anything that helped (obviously - duh).<br>
<br>
</div></div>Kenn<br>
<br>
Your code gets the first attachment and then calls the ContentType<br>
method on it (which takes no arguments) and that returns the<br>
Content-Type of multipart/mixed, which is expected.<br>
<br>
You need to loop through the attachments and get your gif (or just<br>
Limit down).<br>
<font color="#888888"><br>
-kevin<br>
<br>
</font><br><br>
--------<br>
2011 Training: <a href="http://bestpractical.com/services/training.html" target="_blank">http://bestpractical.com/services/training.html</a><br></blockquote></div><br>