cancel
Showing results for 
Search instead for 
Did you mean: 

Restrict file types

muralidharand
Star Contributor
Star Contributor
Hi experts,
How I want to restrict the users for uploading certain file types in document library?
3 REPLIES 3

iblanco
Confirmed Champ
Confirmed Champ
When you say "file types" you refer to mimetypes or content types ? Probably mimetypes.

In any case I think your best option might be creating a behaviour attached to the creation of a content and throwing an error if it is not of a suitable type.

muralidharand
Star Contributor
Star Contributor
Can you please give me some samples to understand this ?

scouil
Star Contributor
Star Contributor
Hello,

You can find a tutorial on behaviors (with corresponding sample code) on Jeff Pott's blog:
http://ecmarchitect.com/archives/2007/09/26/770/comment-page-1

However if you just need to prevent the access to a one single folder, a folder rule might be cleaner than a behavior.
Tutorial about custom actions:
http://ecmarchitect.com/images/articles/alfresco-actions/actions-article-2ed.pdf