cancel
Showing results for 
Search instead for 
Did you mean: 

How do I implement filename validation?

kalkus
Champ in-the-making
Champ in-the-making
Hi!

Does anyone know how to implement content filename validation rules? For example I would like every filename in a specific space to match a certain regular expresion. If the file being added is not valid the user should be prompted to change the name before continuing the upload process. Is there an easy way of achieving this? I looked at the JavaScript API but I just can't seem to find a way to halt the upload process within a script. Can anyone help me please? Thank you in advance!

Martin
1 REPLY 1

raweck
Champ on-the-rise
Champ on-the-rise
Maybe you should define constraint for filename attribute
http://wiki.alfresco.com/wiki/Content_Model_Constraints