We use file upload web control in our sites, where we want only valid image types to be uploaded. Without talking much -> here are 3 ways to do it. 1. Accept attribute of fileUpload control - Doesnt work with most of the browsers (Bad with IE itself)