<?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 enabling download for all documents for external users while public sharing. in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/enabling-download-for-all-documents-for-external-users-while/m-p/91220#M27137</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I need to enable the download button for all the documents instead of just image files while sharing for external users.&lt;/P&gt;&lt;P&gt;Currently it is enable for image file only. so I have replaced &lt;STRONG&gt;model.showDownload = "false"&lt;/STRONG&gt; with &lt;STRONG&gt;model.showDownload = "true"&lt;/STRONG&gt; in &lt;STRONG&gt;quickshare/node-header.get.js&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;now it is enable for all types of documents but the download button is not working for external users. It is neccessary to login to download the documents. since external users dont have any access but I want them to be able to download the documents.&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;quickshare/node-header.get.html.ftl&lt;/STRONG&gt; file needs a "contentURL" for download option and its getting blank in case of no login. and due to this download button is not working.&lt;/P&gt;&lt;P&gt;I have tried by overriding &lt;STRONG&gt;download.get.desc.xml&lt;/STRONG&gt; and changed &lt;STRONG&gt;&amp;lt;authentication&amp;gt;user&amp;lt;/authentication&amp;gt; to &amp;lt;authentication&amp;gt;guest&amp;lt;/authentication&amp;gt;&lt;/STRONG&gt; but it didn't worked. I don't know am I on the correct way.&lt;/P&gt;&lt;P&gt;Is there any way I can do this. Basically I want to remove or bypass the authentication so that external users can download the documents.&lt;/P&gt;&lt;P&gt;Please guide me over this if anybody have any idea about it.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Monica&lt;/P&gt;</description>
    <pubDate>Fri, 27 Sep 2019 13:51:23 GMT</pubDate>
    <dc:creator>monicakumari</dc:creator>
    <dc:date>2019-09-27T13:51:23Z</dc:date>
    <item>
      <title>enabling download for all documents for external users while public sharing.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/enabling-download-for-all-documents-for-external-users-while/m-p/91220#M27137</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I need to enable the download button for all the documents instead of just image files while sharing for external users.&lt;/P&gt;&lt;P&gt;Currently it is enable for image file only. so I have replaced &lt;STRONG&gt;model.showDownload = "false"&lt;/STRONG&gt; with &lt;STRONG&gt;model.showDownload = "true"&lt;/STRONG&gt; in &lt;STRONG&gt;quickshare/node-header.get.js&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;now it is enable for all types of documents but the download button is not working for external users. It is neccessary to login to download the documents. since external users dont have any access but I want them to be able to download the documents.&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;quickshare/node-header.get.html.ftl&lt;/STRONG&gt; file needs a "contentURL" for download option and its getting blank in case of no login. and due to this download button is not working.&lt;/P&gt;&lt;P&gt;I have tried by overriding &lt;STRONG&gt;download.get.desc.xml&lt;/STRONG&gt; and changed &lt;STRONG&gt;&amp;lt;authentication&amp;gt;user&amp;lt;/authentication&amp;gt; to &amp;lt;authentication&amp;gt;guest&amp;lt;/authentication&amp;gt;&lt;/STRONG&gt; but it didn't worked. I don't know am I on the correct way.&lt;/P&gt;&lt;P&gt;Is there any way I can do this. Basically I want to remove or bypass the authentication so that external users can download the documents.&lt;/P&gt;&lt;P&gt;Please guide me over this if anybody have any idea about it.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Monica&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2019 13:51:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/enabling-download-for-all-documents-for-external-users-while/m-p/91220#M27137</guid>
      <dc:creator>monicakumari</dc:creator>
      <dc:date>2019-09-27T13:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: enabling download for all documents for external users while public sharing.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/enabling-download-for-all-documents-for-external-users-while/m-p/91221#M27138</link>
      <description>&lt;P&gt;The download button shows for any file type as long as the user has read access on the node. So there shouldn't be any customization necessary for that.&lt;/P&gt;
&lt;P&gt;How do you want users to get to the documents? If quickshare works for you, what about writing a script that makes the document shared? You could trigger it from a rule, for example. Or, if you want to trigger it from a web script, see &lt;A href="https://hub.alfresco.com/t5/alfresco-content-services-forum/quickshare-by-webscript/m-p/91419" target="_self" rel="nofollow noopener noreferrer"&gt;this thread&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;If you want users to use regular Share to get to the documents, add the EVERYONE group as a Consumer to your site.&lt;/P&gt;
&lt;P&gt;If neither of those options sound good, you could write a web script that runs as the administrator and streams the content. This option would completely by-pass security.&lt;/P&gt;
&lt;P&gt;Similarly, you could write a small application which would use CMIS or the REST API to fetch the documents using a 'service account'. You would need to grant the service account read access to the folder(s) or content items you want to make available to the application. Your application can then either use its own authentication or no authentication at all. Your application is kind of like a proxy in this respect.&lt;/P&gt;
&lt;P&gt;So there are a lot of ways to let users download content without authenticating. It just depends on exactly what you are trying to do.&lt;/P&gt;
&lt;P&gt;Hope these ideas helped,&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2019 17:14:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/enabling-download-for-all-documents-for-external-users-while/m-p/91221#M27138</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2019-09-27T17:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: enabling download for all documents for external users while public sharing.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/enabling-download-for-all-documents-for-external-users-while/m-p/91222#M27139</link>
      <description>&lt;P&gt;I have called the REST API..&lt;/P&gt;&lt;PRE&gt;alfresco/api/-default-/public/alfresco/versions/1/shared-links/${shareId}/content&lt;/PRE&gt;&lt;P&gt;for example, http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/shared-links/666BIWoXQSWGJEsusAVy-g/content and it worked.&lt;/P&gt;&lt;P&gt;Just &lt;STRONG&gt;replaced&lt;/STRONG&gt; &amp;lt;a href="${url.context}/proxy/alfresco${(contentURL!"")?html}?a=true" tabindex="0"&amp;gt;${msg("button.download")}&amp;lt;/a&amp;gt;&lt;BR /&gt;with&lt;/P&gt;&lt;PRE&gt;&amp;lt;a href="${url.context?replace("/share", "/alfresco")}/api/-default-/public/alfresco/versions/1/shared-links/${shareId}/content" tabindex="0"&amp;gt;${msg("button.download")}&amp;lt;/a&amp;gt;&lt;/PRE&gt;&lt;P&gt;in quickshare/&lt;STRONG&gt;node-header.get.html.ftl&lt;/STRONG&gt; and added model.shareId = shareId;&amp;nbsp; in quickshare/&lt;STRONG&gt;node-header.get.js&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;and it worked.&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2019 05:57:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/enabling-download-for-all-documents-for-external-users-while/m-p/91222#M27139</guid>
      <dc:creator>monicakumari</dc:creator>
      <dc:date>2019-10-01T05:57:47Z</dc:date>
    </item>
  </channel>
</rss>

