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*
Solved! Go to Solution.
Hi,
I notice that you have "bas" rather than "bat"?
CONTAINS = *batch* CONTAINS = *adp*,*asp*,*asa*,*ashx*,*asmx*,*bas*,*
Could that be an issue?
Hi,
I notice that you have "bas" rather than "bat"?
CONTAINS = *batch* CONTAINS = *adp*,*asp*,*asa*,*ashx*,*asmx*,*bas*,*
Could that be an issue?
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
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
Hi @akash251998,
Try:
CONTAINS = *exe*
HTH,
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
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
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
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.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.