<?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: Adding filters for extensions. in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/adding-filters-for-extensions/m-p/293763#M246893</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have checked. Please have a look into the attachments in the first post. I have used the filter discussed in the StackOverflow. But its not working. Please check those attachments once.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Oct 2013 05:26:22 GMT</pubDate>
    <dc:creator>shibu</dc:creator>
    <dc:date>2013-10-07T05:26:22Z</dc:date>
    <item>
      <title>Adding filters for extensions.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-filters-for-extensions/m-p/293755#M246885</link>
      <description>In /share/components/upload folder, we are having some js files like dnd-upload.js, file-upload.js, flash-upload.js, html-upload.js. I can see one line in file-upload.js like;&amp;lt;filter: {array},&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // limits what kind of files the user can select in the OS file selector‍‍‍ I modified file-uplo</description>
      <pubDate>Thu, 03 Oct 2013 04:55:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-filters-for-extensions/m-p/293755#M246885</guid>
      <dc:creator>shibu</dc:creator>
      <dc:date>2013-10-03T04:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: Adding filters for extensions.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-filters-for-extensions/m-p/293756#M246886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am not sure what this filter does exactly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But logically once you upload a file then alfresco detects its mimetype so its late to restrict specific mimetype.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You may develop custom rule to delete content of specific mimetype or can develop behavior which implements NodeService Policy, Specifically onCreateNode.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Oct 2013 07:04:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-filters-for-extensions/m-p/293756#M246886</guid>
      <dc:creator>niketapatel</dc:creator>
      <dc:date>2013-10-03T07:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: Adding filters for extensions.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-filters-for-extensions/m-p/293757#M246887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I hope that the filter will block the files on upload.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There is a commented line in all upload js files like;&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;nbsp; filter: {array},&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // limits what kind of files the user can select in the OS file selector&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;BR /&gt;&lt;SPAN&gt;I can execute a script with the rule for deleting some mime types.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is , if I am deleting exe files with a check like ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;if(document.mimetype == "application/octet-stream")&lt;BR /&gt;{&lt;BR /&gt; document.remove();&lt;BR /&gt;}&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;this will not allow to create folder also, becz folder also will be deleted on creation. That is a big problem.&amp;nbsp; Is there any way to solve it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;OR&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I create a rule to delete files with specific extensions?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Oct 2013 07:55:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-filters-for-extensions/m-p/293757#M246887</guid>
      <dc:creator>shibu</dc:creator>
      <dc:date>2013-10-03T07:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: Adding filters for extensions.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-filters-for-extensions/m-p/293758#M246888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry , I am not sure but I dont get this, your script also deleted the folder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your script looks OK and "docuement" object that also refers to content.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You have applied this rule specifically for "cm:content" or for "All Items". &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you have not defined any condition while applying rule then can you please try with cm:content! This script should work as expected - It should not delete folder&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Oct 2013 09:27:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-filters-for-extensions/m-p/293758#M246888</guid>
      <dc:creator>niketapatel</dc:creator>
      <dc:date>2013-10-03T09:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: Adding filters for extensions.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-filters-for-extensions/m-p/293759#M246889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It worked. It was for "All Items". Changed for "cm:content".&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any way to delete from Trashcan also? I dont want to keep it any trashcan too.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Oct 2013 09:43:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-filters-for-extensions/m-p/293759#M246889</guid>
      <dc:creator>shibu</dc:creator>
      <dc:date>2013-10-03T09:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: Adding filters for extensions.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-filters-for-extensions/m-p/293760#M246890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Shibu,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the same scrip add temporary aspect. document.addAspect("sys:temporary). It will directly delete the file without moving it to trashcan. Hope it helps&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Oct 2013 06:47:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-filters-for-extensions/m-p/293760#M246890</guid>
      <dc:creator>vignesh_sabapat</dc:creator>
      <dc:date>2013-10-04T06:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: Adding filters for extensions.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-filters-for-extensions/m-p/293761#M246891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Check out this discussion on StackOverflow : &lt;/SPAN&gt;&lt;A href="http://stackoverflow.com/questions/13905434/alfresco-share-file-upload-filter" rel="nofollow noopener noreferrer"&gt;http://stackoverflow.com/questions/13905434/alfresco-share-file-upload-filter&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Oct 2013 08:23:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-filters-for-extensions/m-p/293761#M246891</guid>
      <dc:creator>sujaypillai</dc:creator>
      <dc:date>2013-10-04T08:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: Adding filters for extensions.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-filters-for-extensions/m-p/293762#M246892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It worked fine… &lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Oct 2013 05:20:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-filters-for-extensions/m-p/293762#M246892</guid>
      <dc:creator>shibu</dc:creator>
      <dc:date>2013-10-07T05:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: Adding filters for extensions.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-filters-for-extensions/m-p/293763#M246893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have checked. Please have a look into the attachments in the first post. I have used the filter discussed in the StackOverflow. But its not working. Please check those attachments once.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Oct 2013 05:26:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-filters-for-extensions/m-p/293763#M246893</guid>
      <dc:creator>shibu</dc:creator>
      <dc:date>2013-10-07T05:26:22Z</dc:date>
    </item>
  </channel>
</rss>

