when use the this line 2 if ($file != "file/exe") every time it echo's out wrong file type when I exchange for line above commented out at moment it works perfect
1 $file = $_FILES['uploaded_file']["type"];
/**** if ($file != "image/gif" && $file != "image/jpeg") WHEN USE GIF JPEG WORKS FINE****/
2 if ($file != "file/exe")
3 echo $file . "wrong file type";
4 }
5 else
6 { carry on with rest of the program
1 $file = $_FILES['uploaded_file']["type"];
/**** if ($file != "image/gif" && $file != "image/jpeg") WHEN USE GIF JPEG WORKS FINE****/
2 if ($file != "file/exe")
3 echo $file . "wrong file type";
4 }
5 else
6 { carry on with rest of the program