Unable to upload doc and docx files
<p>Here i am trying to upload pdf, doc and docx files. Pdf files are uploading well but doc and docx files are not uploading. I kept <code>enctype="multipart/form-data"</code> property in <code>form</code> tag. What's the wrong with my code.</p>

<pre><code>if ((($_FILES["uploadjob"]["type"] == "application/pdf") 
    || ($_FILES["uploadjob"]["type"] == "application/doc") 
    || ($_FILES["uploadjob"]["type"] == "application/docx"))) {
    if ($_FILES["uploadjob"]["error"] &gt; 0) {
        echo "Return Code: ".$_FILES["uploadjob"]["error"]."&lt;br /&gt;";
    } else {
        move_uploaded_file($_FILES["uploadjob"]["tmp_name"], "jobuploads/".$_FILES["uploadjob"]["name"]);
        // echo $_FILES["file"]["tmp_name"];
        $filename = $_FILES["uploadjob"]["name"];
    }
} else {
    echo "&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;center&gt;&lt;font size='3' color='red'&gt;Invalid file. Please upload only pdf, doc or docx files.&lt;/font&gt;&lt;br&gt;&lt;br&gt; This page will be redirected after 5 seconds, Please wait................&lt;/center&gt;";
    echo "&lt;meta HTTP-EQUIV='REFRESH' content='5; url=jobopening.php'&gt;";
    exit;
}
</code></pre>
