Check uploaded file type?

wakeup

Freshman
Joined
Nov 9, 2004
Messages
35
Can I check uploaded file type?
This is my code:
if (file.ContentType=="application/vnd.ms-excel")

But if I rename a txt file to .xls it not run :(
Thankss


Breakdance
 
Back
Top