Alfresco handles every file format, in fact there is no limitation out of the box in order to restrict allowed MIME types. Executables, databases and any other potentially harmful content can be stored inside.
This addon provides an Alfresco extension to define a mime type black list at alfresco-global.properties
and one aspect Mime Type Restrictable
to define which folders shall apply this restriction.
Once this addon is running, no uploading is allowed to selected folders by using black listed mime types.
The plugin is licensed under the LGPL v3.0. The current version is 1.0.0, which is compatible with Alfresco 4.2.c-f and 5.0.a-d.
The binary distribution is made of two AMP files:
You can install it by using standard Alfresco deployment tools
If you are new to Alfresco and the Alfresco Maven SDK, you should start by reading Jeff Potts' tutorial on the subject.
You can build the artifacts from source code using maven
$ mvn clean package
Include and set the following properties at alfresco-global.properties
on your Alfresco installation:
## Samples
## STARTS WITH video = video*
## ENDS WITH xml = *xml
## CONTAINS pdf = *pdf*
## EXACTLY ONE = application/octet-stream
## MANY (use pipes) = application/octet-stream|application/zip|video*
mimetypes.restricted.expression=video*
Above every video mime type will be blocked, but many other filters can be included.
By using default Alfresco Share folder action Manage Aspects
, Mime Type Restrictable aspect can be applied to desired folders.