$_FILES['file']['tmp_name']
Provides the name of the file stored on the web server’s hard disk in the system temporary file directory, unless another directory has been specified using the upload_tmp_dir setting in your php.ini file. This file is only kept as long as the PHP script responsible for handling the form submission is running. So, if you want to use the uploaded file later on (for example, store it for display on the site), you need to make a copy of it elsewhere.
To do this you can use the move_uploaded_file() function which moves
an uploaded file from its temporary to permanent location. Please note
that you'd best use move_uploaded_file() over functions like
copy() and rename() for this purpose because it performs additional checks to ensure the file was indeed uploaded by the HTTP
POST request.
$_FILES['file']['name']
Provides the name of the file on the client machine before it was submitted.If you make a permanent copy of the temporary file, you might want to give it its original name instead of the automatically-generated temporary filename that’s described above.
So all in all:
$_FILES["file"]["name"] //stores the original filename from the client
$_FILES["file"]["tmp_name"] //stores the name of the temporary file
Hope it helps!