Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Participant
1768 Points
404 Posts
Dec 06, 2006 01:39 PM|LINK
i can always rename my a.exe to a.jpg, can i not?
but i guess you could try/catch opening the uploaded stream as a .NET image, and reject the file if exception is caught.
haoest
Participant
1768 Points
404 Posts
Re: Fileupload: allow only .jpg .gif and .png
Dec 06, 2006 01:39 PM|LINK
i can always rename my a.exe to a.jpg, can i not?
but i guess you could try/catch opening the uploaded stream as a .NET image, and reject the file if exception is caught.