contents of the $_FILES array Flashcards
1
Q
$_FILES[‘file’][‘name’]
A
the name of the uploaded file (e.g., smile.jpg)
2
Q
$_FILES[‘file’][‘type’]
A
the content type of the file (e.g., image/jpeg)
3
Q
$_FILES[‘file’][‘size’]
A
the file’s size in bytes
4
Q
$_FILES[‘file’][‘tmp_name’]
A
the name of the temporary file stored on the server
5
Q
$_FILES[‘file’][‘error’]
A
the error code resulting from the file upload