When processing multiple uploaded files in PHP, the $_FILES superglobal uses the format $_FILES['file']['property'][index], where 'property' can be ________ to get the type of the file.

  • 'type'
  • 'name'
  • 'size'
  • 'tmp_name'
The correct option is 'type.' When dealing with multiple uploaded files, accessing the 'type' property of the $_FILES array is essential for identifying the file type of each uploaded file. This is important for validation and processing.
Add your answer
Loading...

Leave a comment

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