pwes24 Posted April 30, 2008 Share Posted April 30, 2008 Hello everyone, I have an upload script that uploads resumes to the server. I'd like to make sure that only ms word documents are uploaded. What is the mime type for the ms word .docx? I know the mime type for the other .doc is application/msword. Thank you. Quote Link to comment Share on other sites More sharing options...
dooper3 Posted April 30, 2008 Share Posted April 30, 2008 Technically I believe docx files are zip files, so you can upload it restricting it to a zip mime type, and renaming it later back to docx if you need should still make it open fine as the docx type. Quote Link to comment Share on other sites More sharing options...
corbin Posted April 30, 2008 Share Posted April 30, 2008 Mime types are useless. I can tell my browser to tell you a .php file is a Word file, and at that point you have major problems. Webservers handle files based on file extensions, so you should do the same. (Check mime types too if you want, but.... Those, like all use input, aren't trust worthy.) Anyway, I googled around, and for the life of me can't find the mime type of .docx files.... Quote Link to comment Share on other sites More sharing options...
jonsjava Posted April 30, 2008 Share Posted April 30, 2008 docx is the new Word 2007 document format (their attempt at a new open standard) Quote Link to comment Share on other sites More sharing options...
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.