<?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 filename and extension of downloaded content stream in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/filename-and-extension-of-downloaded-content-stream/m-p/296298#M249428</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;I've got a javascript webscript that's used to download certain nodes. The webscript is of type "org.alfresco.repository.content.stream" and populates the model's contentNode property with the node that is downloaded, basically like this example: &lt;/SPAN&gt;&lt;A href="https://wiki.alfresco.com/wiki/3.0_Web_Scripts_Kinds#Available_Kinds_of_Web_Script" rel="nofollow noopener noreferrer"&gt;https://wiki.alfresco.com/wiki/3.0_Web_Scripts_Kinds#Available_Kinds_of_Web_Script&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This all works except for the naming of the downloaded file as that's always named after the noderef of the contentNode and it's always extensionless.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know how i can either tell it which name and extension to use?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did look at the model's contentPath property as well, but no matter what i set that to it keep returning a FileNotFoundException.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Aug 2015 13:58:45 GMT</pubDate>
    <dc:creator>schipmolder</dc:creator>
    <dc:date>2015-08-11T13:58:45Z</dc:date>
    <item>
      <title>filename and extension of downloaded content stream</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/filename-and-extension-of-downloaded-content-stream/m-p/296298#M249428</link>
      <description>Hi,I've got a javascript webscript that's used to download certain nodes. The webscript is of type "org.alfresco.repository.content.stream" and populates the model's contentNode property with the node that is downloaded, basically like this example: https://wiki.alfresco.com/wiki/3.0_Web_Scripts_Kin</description>
      <pubDate>Tue, 11 Aug 2015 13:58:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/filename-and-extension-of-downloaded-content-stream/m-p/296298#M249428</guid>
      <dc:creator>schipmolder</dc:creator>
      <dc:date>2015-08-11T13:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: filename and extension of downloaded content stream</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/filename-and-extension-of-downloaded-content-stream/m-p/296299#M249429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have never tried saving a content stream, but my guess is that the "Download" option on the doc library actions does exactly that so I would start looking for that code.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2015 16:53:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/filename-and-extension-of-downloaded-content-stream/m-p/296299#M249429</guid>
      <dc:creator>rjohnson</dc:creator>
      <dc:date>2015-08-11T16:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: filename and extension of downloaded content stream</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/filename-and-extension-of-downloaded-content-stream/m-p/296300#M249430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Bob, unfortunately I've not been able to get it to work in javascript so had to rewrite the web script as java-backed but then at least i can set the response headers accordingly.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2015 10:57:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/filename-and-extension-of-downloaded-content-stream/m-p/296300#M249430</guid>
      <dc:creator>schipmolder</dc:creator>
      <dc:date>2015-08-13T10:57:57Z</dc:date>
    </item>
  </channel>
</rss>

