Bird
0
0

Which $_FILES key holds the temporary filename of the uploaded file on the server?

easy📝 Conceptual Q2 of 15
PHP - Superglobals and Web Context
Which $_FILES key holds the temporary filename of the uploaded file on the server?
Atmp_name
Bname
Ctype
Derror
Step-by-Step Solution
Solution:
  1. Step 1: Review $_FILES keys

    The $_FILES array contains keys like 'name', 'type', 'tmp_name', 'error', and 'size'.
  2. Step 2: Identify the key for temporary file path

    The 'tmp_name' key stores the temporary filename where PHP saved the uploaded file on the server.
  3. Final Answer:

    tmp_name -> Option A
  4. Quick Check:

    Temporary filename key = tmp_name [OK]
Quick Trick: Temporary file path is always in 'tmp_name' key [OK]
Common Mistakes:
  • Using 'name' instead of 'tmp_name' for file path
  • Confusing 'type' with file location
  • Assuming 'error' holds file path

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PHP Quizzes