<?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: How to block uploading .exe files in alfresco? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-block-uploading-exe-files-in-alfresco/m-p/288894#M242024</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Maybe you can attach to the upload script on the client side and listen to a failed upload, and if you find one, alert the message.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Jun 2013 07:24:52 GMT</pubDate>
    <dc:creator>zladuric</dc:creator>
    <dc:date>2013-06-20T07:24:52Z</dc:date>
    <item>
      <title>How to block uploading .exe files in alfresco?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-block-uploading-exe-files-in-alfresco/m-p/288891#M242021</link>
      <description>I have installed alfresco.4.2.c in my windows machine.I don't want allow ".exe" files to be uploaded.So, please let me know the solution to block .exe files in alfresco?</description>
      <pubDate>Thu, 13 Jun 2013 05:49:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-block-uploading-exe-files-in-alfresco/m-p/288891#M242021</guid>
      <dc:creator>shibu</dc:creator>
      <dc:date>2013-06-13T05:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to block uploading .exe files in alfresco?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-block-uploading-exe-files-in-alfresco/m-p/288892#M242022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;One way which I found is;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Creating a Rule, by importing the following script on condition "Items are created or enter this folder".&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;if(document.mimetype == "application/octet-stream")&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; document.remove(); &lt;BR /&gt;}&lt;BR /&gt;else&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; document.save();&lt;BR /&gt;}&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;/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;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Its working properly. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;strong&amp;gt;Here I would like to give an alert message to the user.&amp;lt;/strong&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Updated my script by adding "&lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;alert('EXE files cannot be uploaded');&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;" in the if section. But it gave an error message when I tried to upload exes. ERROR :- 13 bytes (Failure: Failed to execute script 'workspace://SpacesStore/bed935) .&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So please let me know the way to give an alert here.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2013 07:24:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-block-uploading-exe-files-in-alfresco/m-p/288892#M242022</guid>
      <dc:creator>shibu</dc:creator>
      <dc:date>2013-06-13T07:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to block uploading .exe files in alfresco?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-block-uploading-exe-files-in-alfresco/m-p/288893#M242023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can't alert the user from a rule.&amp;nbsp;&amp;nbsp; The rule is running on the server,&amp;nbsp; not the user's web browser.&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2013 10:31:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-block-uploading-exe-files-in-alfresco/m-p/288893#M242023</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2013-06-13T10:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to block uploading .exe files in alfresco?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-block-uploading-exe-files-in-alfresco/m-p/288894#M242024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Maybe you can attach to the upload script on the client side and listen to a failed upload, and if you find one, alert the message.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jun 2013 07:24:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-block-uploading-exe-files-in-alfresco/m-p/288894#M242024</guid>
      <dc:creator>zladuric</dc:creator>
      <dc:date>2013-06-20T07:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to block uploading .exe files in alfresco?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-block-uploading-exe-files-in-alfresco/m-p/288895#M242025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Do I have any other ways to block uploading .exe,.msi in Alfresco? Because, The rule which I have created above will keep the files in Trashcan. I dont want to keep it in Trashcan too.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The requirement is .exe,.msi&amp;nbsp; files should not be uploaded. Better block uploading and show alert message or allow uploading and delete from both the folder and trashcan at the same time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please help me…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jul 2013 04:15:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-block-uploading-exe-files-in-alfresco/m-p/288895#M242025</guid>
      <dc:creator>shibu</dc:creator>
      <dc:date>2013-07-30T04:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to block uploading .exe files in alfresco?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-block-uploading-exe-files-in-alfresco/m-p/288896#M242026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The script &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;&amp;nbsp; document.remove(); &lt;BR /&gt;}&lt;BR /&gt;else&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; document.save();&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;/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;BR /&gt;&lt;SPAN&gt;is removing folders also. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I solve this? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Or Is there any way to check with file extensions?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Oct 2013 09:25:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-block-uploading-exe-files-in-alfresco/m-p/288896#M242026</guid>
      <dc:creator>shibu</dc:creator>
      <dc:date>2013-10-03T09:25:06Z</dc:date>
    </item>
  </channel>
</rss>

