Giter Club home page Giter Club logo

alfresco-mimetype-blocker's Introduction

Alfresco: Mime Type Blocker

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.

Downloading the ready-to-deploy-plugin

The binary distribution is made of two AMP files:

You can install it by using standard Alfresco deployment tools

Building the artifacts

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

Configuring the black list

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.

Selecting restricted folders

By using default Alfresco Share folder action Manage Aspects, Mime Type Restrictable aspect can be applied to desired folders.

alfresco-mimetype-blocker's People

Contributors

angelborroy-ks avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.