cancel
Showing results for 
Search instead for 
Did you mean: 

Restrictions on file naming?

jamilaxon
Champ in-the-making
Champ in-the-making
Are there restrictions on file naming for documents added to Alfresco CMS? Specifically:

- is there a character limit for document/filenames? if so, what is the limit?
- are there restricted file formats?
- are there restricted characters for document/filenames?
- should users use spaces or underscores ( _ ) between words in filenames?

Thanks!
1 REPLY 1

kevinr
Star Contributor
Star Contributor
Any restrictions are set in the contentModel.xml file. A property (such as the name of a file object) on an object type in the system can have constraints such as a regular expression match. For the default cm:filename type, there is a restriction - see the:
<constraint name="cm:filename" type="REGEX">
element in contentModel.xml.

You can remove this restriction or change it by editing this file.

So by default you can use spaces or underscores if you wish.

Any file formats can be added, but Alfresco may not recognise them for full-text indexing by default if there are not a well known mimetype.

Thanks,

Kevin