Try this Eric:
$UploadFile_type = $_FILES['userfile']['type'];
$allowed_mime_types = array("application/x-zip-compressed",
"text/plain",
"image/gif",
"image/pjpeg",
"image/jpeg",
"application/msword",
"application/vnd.ms-excel",
"application/vnd.ms-powerpoint",
"application/pdf");
if (!in_array($UploadFile_type, $allowed_mime_types)){
//bad file type message
}