<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Recent Posts in Problem uploading attachment through api | Unfuddle Community</title>
    <link>http://unfuddle.com/community</link>
    <description>Unfuddle Community Forums</description>
    <item>
      <guid isPermaLink="false">www.unfuddle.com/community:6:960:2734</guid>
      <title>Problem uploading attachment through api posted by mihai.anghel @ Mon, 09 Aug 2010 09:02:21 UTC</title>
      <link>http://www.unfuddle.com/community/forums/6/topics/960</link>
      <description>Hello,
I am trying to add attachments through the api for a ticket.I am using curl from PHP and I when I send the file to get the upload key I am doing something like this :
$fields = array( 'filename' =&gt; '@' . $file['tmp_name'] );
curl_setopt( $ch, CURLOPT_POST, TRUE );
curl_setopt( $ch, CURLOPT_POSTFIELDS, $fields );

The attachment is uploaded, the problem is that at the begginng of the file I see three lines like:
------------------------------b6345709d746

Content-Disposition: form-data; name=&quot;filename&quot;; filename=&quot;phpU0EUBH&quot;

Content-Type: application/octet-stream

and at the end of the file
------------------------------b6345709d746--

Has anyone any idea what could be causing this ?

Thank you very much.</description>
      <pubDate>Mon, 09 Aug 2010 09:02:21 UTC</pubDate>
      <author>mihai.anghel</author>
    </item>
  </channel>
</rss>

