Handling file uploads in PHP

Solution:

$_FILES['file']['tmp_name'] contains the file name of the uploaded file on the server.

Yu can use the move_uploaded_file() function to move the uploaded file to whatever location you need.

This manual page contains all the information you need: http://php.net/manual/en/features.file-upload.post-method.php