For this script, it checks to see if the file is a microsoft words doc or ppt. I am not sure why this isn't running because it works for image MIME and text/plain.
I am using PHP 5.3.1 so it should have all the MIME types installed already right?
I am uploading words and powerpoint 2007.
//Does the file have the right MIME type?
if ($_FILES['userfile']['type'] !='application/msword') {
echo 'Problem: file is not words doc.';
exit;
}
IF I can't upload msword, is there a way to convert the words doc into a image type?
var_dump($_FILES['userfile']['type']), update question with the output. - Amy B