12-30-2019 07:43 AM
Hi,
I have made changes as per below screenshot to put restriction in alfresco for various file uploads (mst, msp, ops, config, cpf etc).
But, i am not able to restrict the upload of .bat file using same change. Please suggest how to proceed with it.
Thanks.
### Added for restricated mimetype on 27/12/2019 ###
CONTAINS = *batch*
CONTAINS = *adp*,*asp*,*asa*,*ashx*,*asmx*,*bas*,*cdx*,*cer*,*chm*,*class*,*cmd*,*cnt*,*com*,*config*,*cpl*,*crt*,*csh*,*der*,*dll*,*exe*,*fxp*,*gadget*,*grp*,*hlp*
CONTAINS = *hpj*,*hta*,*htr*,*htw*,*ida*,*idc*,*idq*,*ins*,*isp*,*its*,*jse*,*json*,*ksh*,*lnk*,*mad*,*maf*,*mag*,*mam*,*maq*,*mar*,*mas*,*mat*,*mau*,*mav*,*maw*
CONTAINS = *mcf*,*mda*,*mdb*,*mde*,*mdt*,*mdw*,*mdz*,*msc*,*msh*,*msh1*,*msh1xml*,*msh2*,*msh2xml*,*mshxml*,*msi*,*ms-one-stub*,*msp*,*mst*,*ops*,*pcd*,*pif*,*pl*,*prf*,*prg*,*printer*,*ps1*,*ps1xml*,*ps2*,*ps2xml*,*psc1*
CONTAINS = *psc2*,*pst*,*reg*,*rem*,*scf*,*scr*,*sct*,*shb*,*shs*,*shtm*,*shtml*,*soap*,*stm*,*svc*,*url*,*vb*,*vbe*,*vbs*,*vsix*,*ws*,*wsc*,*wsf*,*wsh*,*xamlx*,*xml*
EXACTLY ONE = application/octet-stream
### ENDS WITH xml = *bat ###
mimetypes.restricated.expression = video*
01-10-2020 02:06 PM
Hi,
I notice that you have "bas" rather than "bat"?
CONTAINS = *batch* CONTAINS = *adp*,*asp*,*asa*,*ashx*,*asmx*,*bas*,*
Could that be an issue?
01-10-2020 02:06 PM
Hi,
I notice that you have "bas" rather than "bat"?
CONTAINS = *batch* CONTAINS = *adp*,*asp*,*asa*,*ashx*,*asmx*,*bas*,*
Could that be an issue?
01-13-2020 07:18 AM
I guess you are using this addon:
https://github.com/keensoft/alfresco-mimetype-blocker
The right word to specify that is "ENDS" instead of "ENDS WITH"
Try setting
ENDS=*bat
08-11-2020 05:04 AM
My requirement is to restrict .exe files from uploading.
I only wanted to restrict .exe files so what property i need to add in alfresco-global.properties:
As the property i have mentioned below will be sufficient or still i need some modification.
ENDS=*exe
08-11-2020 05:12 AM
Hi @akash251998,
Try:
CONTAINS = *exe*
HTH,
08-11-2020 05:34 AM
Thanks for your response .
I have done the changes in global property but how to apply it for the folder level how to do that
By using default Alfresco Share folder action Manage Aspects, Mime Type Restrictable aspect can be applied to desired folders.
Thanks in Advance
08-11-2020 06:03 AM
Dear @EddieMay thanku for your respons.
I have updated my global property as:
### Added for restricated mimetype ###
CONTAINS = *exe*
And after applying Mime Type Restrictable (mtb:mimetypeRestrictable) on the folder using manage aspect now any file is not getting uploaded on that folder . And an error is coming
08-11-2020 06:36 AM
Hi @akash251998,
Just to be clear, you are using this add-on => https://github.com/keensoft/alfresco-mimetype-blocker? If so, look at the format of the alfresco-global.properties file. Also, can you tell us what version of ACS you are using? Note that this add-on is quite old.
HTH
08-11-2020 06:41 AM
Yes i am using that addon only.
I am using Alfresco community version 5.2 .
As my requirement is to restrict .exe files from uploading due to security purpose.
My global properties is as below:
### Added for restricated mimetype ###
CONTAINS = *exe*
As i am not getting how to make the changes in global properties to achieve my target.
Explore our Alfresco products with the links below. Use labels to filter content by product module.