<?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 Rename the uploaded file in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/rename-the-uploaded-file/m-p/301979#M255109</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 have create a file upload button (which reuses the share file upload) in a custom page. Everything works fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But how can I rename the file that has been uploaded?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example, if the user upload a file "1.txt" it will be saved as the same name in the given folder. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do I have option to rename it as "SomeText_1.txt" before saving it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sun&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Oct 2013 16:48:25 GMT</pubDate>
    <dc:creator>sunquanbin</dc:creator>
    <dc:date>2013-10-29T16:48:25Z</dc:date>
    <item>
      <title>Rename the uploaded file</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rename-the-uploaded-file/m-p/301979#M255109</link>
      <description>HI,I have create a file upload button (which reuses the share file upload) in a custom page. Everything works fine.But how can I rename the file that has been uploaded?For example, if the user upload a file "1.txt" it will be saved as the same name in the given folder. Do I have option to rename it</description>
      <pubDate>Tue, 29 Oct 2013 16:48:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rename-the-uploaded-file/m-p/301979#M255109</guid>
      <dc:creator>sunquanbin</dc:creator>
      <dc:date>2013-10-29T16:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: Rename the uploaded file</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rename-the-uploaded-file/m-p/301980#M255110</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;You can do it in onUploadCompleteData method of flash-upload.js file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in this method you will get the uploaded file noderef, you can use that nodeRef and call custom repository webscript to update properties of Node.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 11:43:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rename-the-uploaded-file/m-p/301980#M255110</guid>
      <dc:creator>lementree</dc:creator>
      <dc:date>2013-11-12T11:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: Rename the uploaded file</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rename-the-uploaded-file/m-p/301981#M255111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Other option is - you can extend alfresco repository webscript which is being called on upload - /api/upload.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In this script, you can define your required name before creating file&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;var newFile = destNode.createFile(filename);&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 12:04:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rename-the-uploaded-file/m-p/301981#M255111</guid>
      <dc:creator>niketapatel</dc:creator>
      <dc:date>2013-11-12T12:04:51Z</dc:date>
    </item>
  </channel>
</rss>

