<?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 Adding Attachments to Tickets | Unfuddle Community</title>
    <link>http://unfuddle.com/community</link>
    <description>Unfuddle Community Forums</description>
    <item>
      <guid isPermaLink="false">www.unfuddle.com/community:6:471:2577</guid>
      <title>Adding Attachments to Tickets replied by David C. @ Fri, 23 Apr 2010 19:29:41 UTC</title>
      <link>http://www.unfuddle.com/community/forums/6/topics/471</link>
      <description>As the documentation states, the attachment upload process actually consists of two steps. In short, it looks something like the following (using curl as our client):

*REQUEST 1*: 

&lt;code&gt;curl -i -u username:password -X POST -H 'Accept: application/xml' -H 'Content-Type: application/octet-stream' -T /home/david/product_specification_v1.doc http://mysubdomain.unfuddle.com/api/v1/projects/155/messages/10534/attachments/upload&lt;/code&gt;

*RESPONSE*: 

&lt;code&gt;&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; 
&lt;upload&gt;&lt;key&gt;a7478121db112c8d50bc6e90dec9b0ff&lt;/key&gt;&lt;/upload&gt;&lt;/code&gt;

*REQUEST 2*: 

&lt;code&gt;curl -i -u username:password -X POST -H 'Accept: application/xml' -H 'Content-Type: application/xml' -d '&lt;attachment&gt;&lt;filename&gt;product_specification_v1.doc&lt;/filename&gt;&lt;content-type&gt;application/octet-stream&lt;/content-type&gt;&lt;upload&gt;&lt;key&gt;a7478121db112c8d50bc6e90dec9b0ff&lt;/key&gt;&lt;/upload&gt;&lt;/attachment&gt;' http://mysubdomain.unfuddle.com/api/v1/projects/155/messages/10534/attachments.xml&lt;/code&gt;

As explained in the documentation, you must first upload the file. Once this has completed, the server will respond with an upload key which must be used in the second request. This second request tells Unfuddle to actually create the attachment object and associate the file data you previously uploaded with that object.

All this being said, you must be using an account plan which supports file attachments (i.e. not the Private plan). If you are still unable to get this to work, please send us a transcript of your attempt(s) and we will be happy to assist you further.</description>
      <pubDate>Fri, 23 Apr 2010 19:29:41 UTC</pubDate>
      <author>David C.</author>
    </item>
    <item>
      <guid isPermaLink="false">www.unfuddle.com/community:6:471:2006</guid>
      <title>Adding Attachments to Tickets replied by David C. @ Thu, 27 Aug 2009 20:55:36 UTC</title>
      <link>http://www.unfuddle.com/community/forums/6/topics/471</link>
      <description>Lilin,

The Unfuddle API does indeed support Attachments for ticket, messages, notebooks and comments. You can find more information in the &quot;API documentation&quot;:http://unfuddle.com/docs/api/attachments

Of particular note, uploading and saving attachments is a two-step process unlike most other API interactions.</description>
      <pubDate>Thu, 27 Aug 2009 20:55:36 UTC</pubDate>
      <author>David C.</author>
    </item>
    <item>
      <guid isPermaLink="false">www.unfuddle.com/community:6:471:1975</guid>
      <title>Adding Attachments to Tickets replied by lilin @ Wed, 19 Aug 2009 08:43:28 UTC</title>
      <link>http://www.unfuddle.com/community/forums/6/topics/471</link>
      <description>It seems that the unfuddle api doesn't provide the attachment information.

If you export all tickets information into an csv document, there wouldn't be attachment information such as attachment id.</description>
      <pubDate>Wed, 19 Aug 2009 08:43:28 UTC</pubDate>
      <author>lilin</author>
    </item>
    <item>
      <guid isPermaLink="false">www.unfuddle.com/community:6:471:1466</guid>
      <title>Adding Attachments to Tickets posted by Jeff Cole @ Sun, 08 Feb 2009 23:01:34 UTC</title>
      <link>http://www.unfuddle.com/community/forums/6/topics/471</link>
      <description>Does anyone have any example code where they have added used the Unfuddle API to add attachments to tickets?

thanks,
jeff</description>
      <pubDate>Sun, 08 Feb 2009 23:01:34 UTC</pubDate>
      <author>Jeff Cole</author>
    </item>
    <item>
      <guid isPermaLink="false">www.unfuddle.com/community:6:471:2574</guid>
      <title>Adding Attachments to Tickets replied by Charlie van de Kerkhof @ Thu, 22 Apr 2010 14:01:02 UTC</title>
      <link>http://www.unfuddle.com/community/forums/6/topics/471</link>
      <description>David C.,

The API docs are a nice ref for field names but exactly how the flow is and how to upload a f.i. a PDF to Unfuddle is not clear to me. Should we encode the file contents with base64? Or do we provide an remote url? or else...?</description>
      <pubDate>Thu, 22 Apr 2010 14:01:02 UTC</pubDate>
      <author>Charlie van de Kerkhof</author>
    </item>
  </channel>
</rss>

