What is $_FILES in PHP

$_FILES[] is a superglobal array is filled up with data about the uploaded file. When a file is uploaded, it gets stored in a temporary area on the server until it is moved. The file has to be moved from that area, or else it will be destroyed.  “fileinput”is the HTML element name from which file is uploaded.

Superglobal Description
$_FILES[‘fileinput’][‘name’] Original Name of File Before It Was Uploaded
$_FILES[‘fileinput’][‘type’] The MIME Type of File, Provided By the Browser
$_FILES[‘fileinput’][‘size’] Size of the File (In Bytes)
$_FILES[‘fileinput’][‘tmp_name’] Location of Temporary File on Server
$_FILES[‘fileinput’][‘error’] Any Error Codes Resulting From the File Upload