What is the difference between $_FILES['userfile']['name'] and $_FILES['userfile']['tmp_name']?

  • name represents the original filename, while tmp_name represents the temporary location of the uploaded file
  • name represents the temporary location of the uploaded file, while tmp_name represents the original filename
  • They both refer to the same value
  • They are used for different purposes
$_FILES['userfile']['name'] represents the original filename of the uploaded file, while $_FILES['userfile']['tmp_name'] represents the temporary location where the uploaded file is stored on the server.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *