change default file extentions in FileUpload Control

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I want when I click on Browse button (FileUpload Control), I see just image
extensions not anything else.

How can I do this?

Thanks,
Monica
 
Hi,

I want when I click on Browse button (FileUpload Control), I see just image
extensions not anything else.

No, you cannot. You can only check if selected file has correct
extension either by using validation controls, or on the server-side.

Check this:

Listing 3. Using validation controls to restrict the types of files
uploaded to the server
Listing 4. Checking the file type on the server
http://msdn2.microsoft.com/en-us/library/aa479405.aspx
 
Back
Top