<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Unable to add attachment to task with Activit REST API in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/unable-to-add-attachment-to-task-with-activit-rest-api/m-p/208705#M161835</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;[Adding]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also I checked with an external url and it works fine, So this has to be some issue with getting the binary content of the file, or the ajax request content.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Jun 2015 04:01:35 GMT</pubDate>
    <dc:creator>hguser</dc:creator>
    <dc:date>2015-06-19T04:01:35Z</dc:date>
    <item>
      <title>Unable to add attachment to task with Activit REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/unable-to-add-attachment-to-task-with-activit-rest-api/m-p/208704#M161834</link>
      <description>Hi,I'm trying to use rest API call to add an attachment to a task . ( attaching a file rather than giving an external url)&amp;nbsp; I'm trying to do this in a webapp, so the rest call happens as jquery ajax. Following is the js function that i'm using. function addAttachment(id){&amp;nbsp;&amp;nbsp;&amp;nbsp; var files = document.get</description>
      <pubDate>Fri, 19 Jun 2015 03:45:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/unable-to-add-attachment-to-task-with-activit-rest-api/m-p/208704#M161834</guid>
      <dc:creator>hguser</dc:creator>
      <dc:date>2015-06-19T03:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to add attachment to task with Activit REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/unable-to-add-attachment-to-task-with-activit-rest-api/m-p/208705#M161835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;[Adding]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also I checked with an external url and it works fine, So this has to be some issue with getting the binary content of the file, or the ajax request content.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2015 04:01:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/unable-to-add-attachment-to-task-with-activit-rest-api/m-p/208705#M161835</guid>
      <dc:creator>hguser</dc:creator>
      <dc:date>2015-06-19T04:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to add attachment to task with Activit REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/unable-to-add-attachment-to-task-with-activit-rest-api/m-p/208706#M161836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Why are you using JSON.stringify to sent a file body to the REST service?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It looks to me like the request is not correct.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Jun 2015 18:42:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/unable-to-add-attachment-to-task-with-activit-rest-api/m-p/208706#M161836</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2015-06-21T18:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to add attachment to task with Activit REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/unable-to-add-attachment-to-task-with-activit-rest-api/m-p/208707#M161837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the response Tijs.&amp;nbsp; Well in order to pass the name value of the file, don't we need to enode it as JSON?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 03:37:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/unable-to-add-attachment-to-task-with-activit-rest-api/m-p/208707#M161837</guid>
      <dc:creator>hguser</dc:creator>
      <dc:date>2015-06-22T03:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to add attachment to task with Activit REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/unable-to-add-attachment-to-task-with-activit-rest-api/m-p/208708#M161838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Got it solved, Instead of jquery, I used a form on encType multipart/form-data and sent it as a POST request. Thanks for the help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 04:21:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/unable-to-add-attachment-to-task-with-activit-rest-api/m-p/208708#M161838</guid>
      <dc:creator>hguser</dc:creator>
      <dc:date>2015-06-22T04:21:33Z</dc:date>
    </item>
  </channel>
</rss>

