<?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 Upload new version Name in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/upload-new-version-name/m-p/65505#M22151</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When user clicks on "Upload New Version" on a document, I need to enforce the user that the new document has the same name as the old document, otherwise don't allow the user to upload new version.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Feb 2018 00:26:45 GMT</pubDate>
    <dc:creator>sakshik</dc:creator>
    <dc:date>2018-02-13T00:26:45Z</dc:date>
    <item>
      <title>Upload new version Name</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/upload-new-version-name/m-p/65505#M22151</link>
      <description>When user clicks on "Upload New Version" on a document, I need to enforce the user that the new document has the same name as the old document, otherwise don't allow the user to upload new version.&amp;nbsp;Any suggestions?</description>
      <pubDate>Tue, 13 Feb 2018 00:26:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/upload-new-version-name/m-p/65505#M22151</guid>
      <dc:creator>sakshik</dc:creator>
      <dc:date>2018-02-13T00:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: Upload new version Name</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/upload-new-version-name/m-p/65506#M22152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can write behavior for same.Implement the behavior for&amp;nbsp;&lt;A class="link-titled" href="https://dev.alfresco.com/resource/docs/java/org/alfresco/repo/version/VersionServicePolicies.OnCreateVersionPolicy.html" title="https://dev.alfresco.com/resource/docs/java/org/alfresco/repo/version/VersionServicePolicies.OnCreateVersionPolicy.html" rel="nofollow noopener noreferrer"&gt;VersionServicePolicies.OnCreateVersionPolicy (Alfresco 5.3.a-SNAPSHOT API)&lt;/A&gt;&amp;nbsp; using this policy.You will be able to compare old name and new name in this.Throw the exception if it does not match.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't want&amp;nbsp;throw exception, you can update new name with the old name.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2018 07:03:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/upload-new-version-name/m-p/65506#M22152</guid>
      <dc:creator>krutik_jayswal</dc:creator>
      <dc:date>2018-02-13T07:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: Upload new version Name</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/upload-new-version-name/m-p/65507#M22153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could it be done through manipulating&lt;STRONG&gt; upload.post.js&lt;/STRONG&gt; in&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;tomcat/webapps/alfresco/WEB-INF/classes/alfresco/extension/templates/webscripts/org/alfresco/repository/upload/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Since I don't have maven setup, I am not sure whether it can be done through classes you mentioned.&lt;/P&gt;&lt;P&gt;Either ways, could you please elaborate on the steps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2018 22:12:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/upload-new-version-name/m-p/65507#M22153</guid>
      <dc:creator>sakshik</dc:creator>
      <dc:date>2018-02-13T22:12:26Z</dc:date>
    </item>
  </channel>
</rss>

