You can pretty much only truly enforce this once the file has been uploaded.
Then you can get the content type of the file from your file upload control,
something like this:
File1.PostedFile.ContentType
If the ContentType isn't what you expected then you can simply ignore the
file (by not saving it anywhere) and display an appropriate message to your
user.
--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at
http://www.able-consulting.com
"mano kumar" <sc**@rocketmail.com> wrote in message
news:03****************************@phx.gbl...
hello, is there a way i can control what user upload to
the webserver? i've created a upload feature and i dont
know howto control what the user uploads. i want to allow
my user to only upload .doc files. any help i greatly
appriciated...
yours truly
Mano Kumar