Check uploaded file type?
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
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
alaincPosted Mar 14, 2005, 12:10 PM
mibuytPosted Mar 14, 2005, 3:53 AM