File Upload Validator always show error message
Posted
by Space Cracker
on Stack Overflow
See other posts from Stack Overflow
or by Space Cracker
Published on 2010-03-23T06:39:30Z
Indexed on
2010/03/23
6:43 UTC
Read the original article
Hit count: 272
i add asp.net file upload control as following
<asp:FileUpload ID="filesFileUpload" runat="server" />
<asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ErrorMessage="file types not supported"
ValidationExpression="\.(zip.rar|jpg|gif|png|eps|ai|psd|pdf)$" ControlToValidate="filesFileUpload"></asp:RegularExpressionValidator>
and always when i upload file that match the reg expression it show the error .. could any help me why this done ?
© Stack Overflow or respective owner