<?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: Custom Web Script for document Download in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/custom-web-script-for-document-download/m-p/237173#M190303</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Take a look at enabling the remote object &lt;/SPAN&gt;&lt;A href="http://drquyong.com/myblog/?p=49" rel="nofollow noopener noreferrer"&gt;http://drquyong.com/myblog/?p=49&lt;/A&gt;&lt;SPAN&gt; in the core repository.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Usage information is here: &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Surf_Platform_-_Freemarker_Template_and_JavaScript_API#remote" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Surf_Platform_-_Freemarker_Template_and_JavaScript_API#remote&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Jun 2010 20:43:59 GMT</pubDate>
    <dc:creator>jottley</dc:creator>
    <dc:date>2010-06-17T20:43:59Z</dc:date>
    <item>
      <title>Custom Web Script for document Download</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-web-script-for-document-download/m-p/237170#M190300</link>
      <description>Hello everyone,I need to write a custom Web Script in order to download a file from the repository.I know that there are native services to do that, but I need to validate the document id through other back-end systems using remote.callHere what I've done so far in the cstdownload.get.js :var nodeid</description>
      <pubDate>Thu, 03 Jun 2010 21:50:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-web-script-for-document-download/m-p/237170#M190300</guid>
      <dc:creator>cris_cc</dc:creator>
      <dc:date>2010-06-03T21:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Web Script for document Download</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-web-script-for-document-download/m-p/237171#M190301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dear Cris,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can use&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;var fileDownLoadUrl = file[0].downloadUrl;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;If this does`nt work then in the ftl you can use&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;${file[0].downloadUrl}&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks &amp;amp; Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Amarendra Thakur&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jun 2010 06:48:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-web-script-for-document-download/m-p/237171#M190301</guid>
      <dc:creator>amarendra_thaku</dc:creator>
      <dc:date>2010-06-04T06:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Web Script for document Download</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-web-script-for-document-download/m-p/237172#M190302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Amarendra,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for your reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But the solution you sent is not helping me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically the following code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;var fileDownLoadUrl = file.downloadUrl;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;just produce the service path to use to download the file (something like "&lt;/SPAN&gt;&lt;EM&gt;/d/a/workspace/SpacesStore/eb0d2fa7-ff5f-440c-9f49-6edc4036b6ce/mypic.jpg&lt;/EM&gt;&lt;SPAN&gt;"), and it could be used in the xml/html output (ie: cstdownload.get.xml.ftl) as link to the file download.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I'm looking for is how to stream the file directly from the Web Script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cris&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jun 2010 14:06:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-web-script-for-document-download/m-p/237172#M190302</guid>
      <dc:creator>cris_cc</dc:creator>
      <dc:date>2010-06-04T14:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Web Script for document Download</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-web-script-for-document-download/m-p/237173#M190303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Take a look at enabling the remote object &lt;/SPAN&gt;&lt;A href="http://drquyong.com/myblog/?p=49" rel="nofollow noopener noreferrer"&gt;http://drquyong.com/myblog/?p=49&lt;/A&gt;&lt;SPAN&gt; in the core repository.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Usage information is here: &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Surf_Platform_-_Freemarker_Template_and_JavaScript_API#remote" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Surf_Platform_-_Freemarker_Template_and_JavaScript_API#remote&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jun 2010 20:43:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-web-script-for-document-download/m-p/237173#M190303</guid>
      <dc:creator>jottley</dc:creator>
      <dc:date>2010-06-17T20:43:59Z</dc:date>
    </item>
  </channel>
</rss>

