<?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: APS Attachment in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/aps-attachment/m-p/2672#M667</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hallo Denys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure if I understand your suggestion completely.&lt;/P&gt;&lt;P&gt;As far as I understood you would recommend generating an dynamic hyperlink to the raw URL of the content.&lt;/P&gt;&lt;P&gt;For example this URL can look like this: &lt;A class="unlinked"&gt;https://HOST/activiti-app/app/rest/content/2002/raw&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can generate such a url and show the hyperlink to the user. Then, the problem is, that the request is not authorized.&lt;/P&gt;&lt;P&gt;This is exactly the solution I've described with point 2 in my initial post. Maybe I do not get your suggestion at this point. When calling this URL with a REST client a HTTP401 is returned even when the Basic Auth is set.&lt;IMG alt="REST Client calling raw URL" class="image-1 jive-image j-img-original" src="https://connect.hyland.com/legacyfs/online/alfresco/16542_snipaste_20170927_133627.png" style="width: 620px; height: 575px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other requests like tasks/query are working fine this way.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Sep 2017 11:37:26 GMT</pubDate>
    <dc:creator>phoefler</dc:creator>
    <dc:date>2017-09-27T11:37:26Z</dc:date>
    <item>
      <title>APS Attachment</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/aps-attachment/m-p/2670#M665</link>
      <description>Hallo,I am developing an external webapp (based on Javascript) that is using the alfresco-js-api to communicate with Alfresco Process Services (1.6.0). I want to display an attached document in the browser.First, the js-api is working fine. I can authorize and connect to Activiti either via credenti</description>
      <pubDate>Tue, 26 Sep 2017 08:08:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/aps-attachment/m-p/2670#M665</guid>
      <dc:creator>phoefler</dc:creator>
      <dc:date>2017-09-26T08:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: APS Attachment</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/aps-attachment/m-p/2671#M666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Note on the downloading. You can invoke a download action without any popups or user interaction. The "traditional" workaround is to create a hyperlink dynamically and invoke the action, here's one of the examples:&amp;nbsp;&lt;A class="link-titled" href="https://github.com/Alfresco/alfresco-ng2-components/blob/master/ng2-components/ng2-alfresco-core/src/dialogs/download-zip.dialog.ts#L129" title="https://github.com/Alfresco/alfresco-ng2-components/blob/master/ng2-components/ng2-alfresco-core/src/dialogs/download-zip.dialog.ts#L129" rel="nofollow noopener noreferrer"&gt;alfresco-ng2-components/download-zip.dialog.ts at master · Alfresco/alfresco-ng2-components · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We also got&amp;nbsp;several helper&amp;nbsp;functions to invoke the download of the raw data when fetched from the ACS/APS in the ContentService:&amp;nbsp;&lt;A class="link-titled" href="https://github.com/Alfresco/alfresco-ng2-components/blob/master/ng2-components/ng2-alfresco-core/src/services/content.service.ts" title="https://github.com/Alfresco/alfresco-ng2-components/blob/master/ng2-components/ng2-alfresco-core/src/services/content.service.ts" rel="nofollow noopener noreferrer"&gt;alfresco-ng2-components/content.service.ts at master · Alfresco/alfresco-ng2-components · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can refer to the code for some snippets or ideas how to do that with just js-api.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2017 11:20:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/aps-attachment/m-p/2671#M666</guid>
      <dc:creator>dvuika</dc:creator>
      <dc:date>2017-09-27T11:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: APS Attachment</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/aps-attachment/m-p/2672#M667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hallo Denys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure if I understand your suggestion completely.&lt;/P&gt;&lt;P&gt;As far as I understood you would recommend generating an dynamic hyperlink to the raw URL of the content.&lt;/P&gt;&lt;P&gt;For example this URL can look like this: &lt;A class="unlinked"&gt;https://HOST/activiti-app/app/rest/content/2002/raw&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can generate such a url and show the hyperlink to the user. Then, the problem is, that the request is not authorized.&lt;/P&gt;&lt;P&gt;This is exactly the solution I've described with point 2 in my initial post. Maybe I do not get your suggestion at this point. When calling this URL with a REST client a HTTP401 is returned even when the Basic Auth is set.&lt;IMG alt="REST Client calling raw URL" class="image-1 jive-image j-img-original" src="https://connect.hyland.com/legacyfs/online/alfresco/16542_snipaste_20170927_133627.png" style="width: 620px; height: 575px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other requests like tasks/query are working fine this way.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2017 11:37:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/aps-attachment/m-p/2672#M667</guid>
      <dc:creator>phoefler</dc:creator>
      <dc:date>2017-09-27T11:37:26Z</dc:date>
    </item>
  </channel>
</rss>

