hai provato a fare un
echo $_FILES["file"]["type"];
?????