Hello Everyone... I have web application where user can upload only .doc file on the server... Please provide me sample code which can put validation to check filetype .. Thx
Hi, You can do it by using ReguralExpressionValidator control. Check this link for your solution: http://www.mindstick.com/Articles/7d72a758-52bc-4242-922f-6b3914895d92/?Validating%20FileUpload%20control%20for%20specific%20file%20type%20and%20required%20field.
Join MindStick Community
You need to log in or register to vote on answers or questions.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
You can do it by using ReguralExpressionValidator control.
Check this link for your solution: http://www.mindstick.com/Articles/7d72a758-52bc-4242-922f-6b3914895d92/?Validating%20FileUpload%20control%20for%20specific%20file%20type%20and%20required%20field.