Restrict file types
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-12-2012 05:33 AM
Hi experts,
How I want to restrict the users for uploading certain file types in document library?
How I want to restrict the users for uploading certain file types in document library?
Labels:
- Labels:
-
Archive
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2012 02:34 PM
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.
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.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2012 12:07 AM
Can you please give me some samples to understand this ?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2012 02:27 AM
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
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
