So i want the user to only be able to upload docs or docx\'s. So first here\'s my html:
change
$extension!=".doc" || $extension!=".doc"
to
$extension!=".doc" || $extension!=".docx"
and use $_FILES['img'] instead of $_FILES['file'] because your file type is having img name property.
$_FILES['img']
$_FILES['file']
img