Your file field name is img and you have used $_FILES["file"], but it should be $_FILES["img"].
Also you need to change your if condition
if (($_FILES["file"]["size"] < 200000)
&& in_array($extension, $allowedExts)) {
There is no need of
$extension!=".doc" || $extension!=".doc" &&