<?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: Restrict .exe files to upload in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/restrict-exe-files-to-upload/m-p/97088#M28430</link>
    <description>&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/79410"&gt;@akash251998&lt;/A&gt;&amp;nbsp;are you able to find the solution to restrict uploading .exe? I am also going through similar requirement.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 13 Nov 2020 22:03:46 GMT</pubDate>
    <dc:creator>llavu</dc:creator>
    <dc:date>2020-11-13T22:03:46Z</dc:date>
    <item>
      <title>Restrict .exe files to upload</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/restrict-exe-files-to-upload/m-p/97085#M28427</link>
      <description>&lt;P&gt;As my requirement is to restrict .exe files to upload as these .exe files can harm the dms. I have used the addon from the link:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/keensoft/alfresco-mimetype-blocker" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/keensoft/alfresco-mimetype-blocker &lt;/A&gt;but it is not working for me.&lt;/P&gt;&lt;P&gt;So is there any other way to do this restriction.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Akash D&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2020 12:52:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/restrict-exe-files-to-upload/m-p/97085#M28427</guid>
      <dc:creator>akash251998</dc:creator>
      <dc:date>2020-08-12T12:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict .exe files to upload</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/restrict-exe-files-to-upload/m-p/97086#M28428</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can create Custom rule with Execute script and write your logic to to check extension and if it match then throw error.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2020 06:27:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/restrict-exe-files-to-upload/m-p/97086#M28428</guid>
      <dc:creator>sp2</dc:creator>
      <dc:date>2020-08-13T06:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict .exe files to upload</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/restrict-exe-files-to-upload/m-p/97087#M28429</link>
      <description>&lt;P&gt;I have created a custom rule like :&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;function&lt;/SPAN&gt; main()
{
  &lt;SPAN&gt;var&lt;/SPAN&gt; name = document.name;
  &lt;SPAN&gt;var&lt;/SPAN&gt; siteName = document.siteShortName;
  &lt;SPAN&gt;var&lt;/SPAN&gt; parent = document.parent;
  

  &lt;SPAN&gt;if&lt;/SPAN&gt; (ext === &lt;SPAN&gt;'pdf'&lt;/SPAN&gt; || ext === &lt;SPAN&gt;'zip'&lt;/SPAN&gt; || ext === &lt;SPAN&gt;'doc'&lt;/SPAN&gt; || ext === &lt;SPAN&gt;'exe'&lt;/SPAN&gt;)
     &lt;SPAN&gt;throw&lt;/SPAN&gt; &lt;SPAN&gt;"Unsupported file format.are not supported at this time. File name:  "&lt;/SPAN&gt; + name + &lt;SPAN&gt;", Site Name: "&lt;/SPAN&gt;  + siteName;

}

main();&lt;BR /&gt;&lt;BR /&gt;And it is perfectly working for pdf,zip,doc but not for exe. What is incorrect in my logic. If there is any other login please tell me.&lt;BR /&gt;Regards &lt;BR /&gt;Akash&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 13 Aug 2020 07:02:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/restrict-exe-files-to-upload/m-p/97087#M28429</guid>
      <dc:creator>akash251998</dc:creator>
      <dc:date>2020-08-13T07:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict .exe files to upload</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/restrict-exe-files-to-upload/m-p/97088#M28430</link>
      <description>&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/79410"&gt;@akash251998&lt;/A&gt;&amp;nbsp;are you able to find the solution to restrict uploading .exe? I am also going through similar requirement.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2020 22:03:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/restrict-exe-files-to-upload/m-p/97088#M28430</guid>
      <dc:creator>llavu</dc:creator>
      <dc:date>2020-11-13T22:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict .exe files to upload</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/restrict-exe-files-to-upload/m-p/97089#M28431</link>
      <description>&lt;P&gt;The add-on should work, try adding following property in alfresco-global.properties file:&lt;/P&gt;
&lt;PRE&gt;mimetypes.restricted.expression=application/x-dosexec|application/octet-stream|application/x-sh
&lt;/PRE&gt;
&lt;P&gt;To block the content uploads, first create a folder and apply the aspect named "&lt;EM&gt;Mime Type Restrictable&lt;/EM&gt;" on the folder.&lt;/P&gt;
&lt;P&gt;All content uploads with .exe extension (application/x-dosexec) should get blocked.&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;In case if it doesn't work, try the enhanced version available here:&amp;nbsp;&lt;A href="https://github.com/abhinavmishra14/alfresco-mimetype-blocker/blob/sdk4.1.0/README.md" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/abhinavmishra14/alfresco-mimetype-blocker/blob/sdk4.1.0/README.md&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I have converted the project to make it work for ACS6.x as well.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2020 01:31:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/restrict-exe-files-to-upload/m-p/97089#M28431</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2020-11-17T01:31:11Z</dc:date>
    </item>
  </channel>
</rss>

