wakeup Posted March 14, 2005 Posted March 14, 2005 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 Quote
kahlua001 Posted March 14, 2005 Posted March 14, 2005 Use the FileInfo class, file extension is a property of that. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.