If we require a file name submitted by users must be
less than 40 characters, not have space and have a
single 3 character extension (for example: .doc, .txt,
.pdf)
To set 40 characters limit, we can do:
<field
property="filename"
depends="required,maxlength">
<arg0 key="select.filename"/>
<arg1 name="maxlength" key="${var:maxlength}"
resource="false"/>
<var>
<var-name>maxlength</var-name>
<var-value>40</var-value>
</var>
</field>
I think the 3 characters extension may be something
similar to ^\d{3}\d*$ (I can be wrong). And how do we
set the 'no space' constraint?
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]