Filter file type in FileUpload control
-
Hi, Is there any way to set a property for FileUpload control to filter file type in .NET Web application? Thanks in Advance.
Use Regular Expression Validator ..!E
//Example for PDF Files..!
^(([a-zA-Z]:)|(\\{2}\w+)\$?)(\\(\w[\w].*))+(.pdf)$MyFirstArticlePublished: MenuControlSelectedItem Why Do Some People Forget To Mark as Answer .If It Helps.
-
Use Regular Expression Validator ..!E
//Example for PDF Files..!
^(([a-zA-Z]:)|(\\{2}\w+)\$?)(\\(\w[\w].*))+(.pdf)$MyFirstArticlePublished: MenuControlSelectedItem Why Do Some People Forget To Mark as Answer .If It Helps.
-
Use this Link..! http://aspdotnetcodebook.blogspot.com/2008/12/how-to-use-regularexpressionvalidator.html[^]
MyFirstArticlePublished: MenuControlSelectedItem Why Do Some People Forget To Mark as Answer .If It Helps.
-
Hi, Is there any way to set a property for FileUpload control to filter file type in .NET Web application? Thanks in Advance.
No. Your best bet is to validate the file type on server before you save it.
Navaneeth How to use google | Ask smart questions