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.
if(($_FILES["file"]["type"] != 'application/octet-stream') ||
($_FILES["file"]["type"] != 'application/vnd.oasis.opendocument.text')||
($_FILES["file"]["type"] != 'application/msword')||
($_FILES["file"]["size"] > 200000))
{
//echo $_FILES["file"]["size"];
//echo $_FILES["file"]["type"];
$this->assign_values('msg',"File types .doc,.docx,.odt and max file size 2mb supported");
//echo "Error: " . $_FILES["file"]["error"] . "<br />";
}