title: File type PHP validation
body: <p>What I am doing wrong with the code , it always shows 'File types .doc,.docx,.odt and max file size 2mb supported 'even if the file type is .doc format and size is 0kb.</p>
  
  <pre><code>if(($_FILES["file"]["type"] != 'application/octet-stream') ||
              ($_FILES["file"]["type"] != 'application/vnd.oasis.opendocument.text')||
              ($_FILES["file"]["type"] != 'application/msword')||
              ($_FILES["file"]["size"] &gt; 200000))
          {
              //echo $_FILES["file"]["size"];
              //echo $_FILES["file"]["type"];
              $this-&gt;assign_values('msg',"File types .doc,.docx,.odt and max file size 2mb supported");
              //echo "Error: " . $_FILES["file"]["error"] . "&lt;br /&gt;";
          }
  </code></pre>