cancel
Showing results for 
Search instead for 
Did you mean: 

File name restriction! contentModel.xml is not effective?

sugai
Champ in-the-making
Champ in-the-making
Smiley Sad
Hello!
I have installed Alfresco-community-tomcat-1.4.(HSQL) on the Windows XP Home Edition sp2.
I would like to upload the CAD data file to Alfresco. I could not upload the file.
File name is below.

G3MR575068__-___-_A+MR575068__-___-_A-01.HPG

I had tried the modification of the setting of contentModel.xml file, setteings are below.

setteings of contentModel.xml
   <constraints>
      <constraint name="cm:filename" type="REGEX">
         <parameter name="expression"><value><![CDATA[(.*[\"\*\\\>\<\?\/\:\|\xA3\xAC\%\&\;]+.*)|(.*[\.]?.*[\.]+$)|
(.*[ ]+$)]]></value></parameter>
         <parameter name="requiresMatch"><value>false</value></parameter>
      </constraint>
   </constraints>

But the popup message appears, [ '+' is invalid character ].  I could not upload the file.
This file could upload to Windows and Linux.

I must do other settings ? 
Please advice.
1 REPLY 1

sugai
Champ in-the-making
Champ in-the-making
I could upload  the same file in community-tomcat-2.1.0.

It solved my problem, thank you.

Smiley Very Happy