Document max file size by type
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2013 04:48 AM
Is it possible configure the maximum size for file uploading by type?.
For example I want to allow pdf files with &0MB max size and mp3 files with 30MB max size.
Thanks in advance
For example I want to allow pdf files with &0MB max size and mp3 files with 30MB max size.
Thanks in advance
Labels:
- Labels:
-
Archive
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2013 03:07 PM
I don't know of an out-of-the-box way to do this in Alfresco. Alfresco doesn't determine the mimetype of the document until after it's completely uploaded. The only thing I could think of would be to create a custom behavior that implements OnCreateNodePolicy and check the mimetype content size when a node is being created and throw an exception if it violates your sizing constraints. However, using this method, it would be difficult to get a meaningful error message back to the user interface.
Here is useful article for implementing behaviours: http://ecmarchitect.com/images/articles/alfresco-behavior/behavior-article.pdf
Here is useful article for implementing behaviours: http://ecmarchitect.com/images/articles/alfresco-behavior/behavior-article.pdf
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2013 02:34 AM
Thank you very much.
I've imagined it since the mimetype is detected at the end of the upload process. I'll try your proposal.
I've imagined it since the mimetype is detected at the end of the upload process. I'll try your proposal.
