I am trying to upload a doc file from a form and send it to email. I am using
$_FILES[\'file\'][\'tmp_name\'];
The problem is, it is retur
$_FILES["file"]["tmp_name"] contains the actual copy of your file content on the server while $_FILES["file"]["name"] contains the name of the file which you have uploaded from the client computer.
$_FILES["file"]["tmp_name"]
$_FILES["file"]["name"]