<?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 upload attachment | Unfuddle Community</title>
    <link>http://unfuddle.com/community</link>
    <description>Unfuddle Community Forums</description>
    <item>
      <guid isPermaLink="false">www.unfuddle.com/community:6:897:2565</guid>
      <title>upload attachment posted by yc @ Tue, 20 Apr 2010 23:56:56 UTC</title>
      <link>http://www.unfuddle.com/community/forums/6/topics/897</link>
      <description>I am having issue uploading attachments using Curl. Basically I have a file upload box in my form 
(has enctype=&quot;multipart/form-data&quot;).

- get the file in php

$file = $_FILES['fileup'];

- assign tmp file path to a variable

$postbody = &quot;@$file[tmp_name]&quot;;

- setup postfields in curl
curl_setopt ($chandle, CURLOPT_POSTFIELDS, $postbody);

I have also set the 2 required headers as specified by the unfuddle api.

The issue is when I download the attachments instead of containing their original content, they only have the tmp file path ie what &quot;$file[tmp_name]&quot; points to

Any idea why that might be the case?</description>
      <pubDate>Tue, 20 Apr 2010 23:56:56 UTC</pubDate>
      <author>yc</author>
    </item>
  </channel>
</rss>

