Friday, 2 October 2020

PHP $_FILES Explained in Detail

What is $_FILES in PHP?

$_files is a global two-dimensional associative array in PHP. It provides file handling through server-side.

How to Use $_FILES?

$_FILES is a global array so we can access it anywhere in PHP files. We can access uploaded file details with associative keys described below.

AttributeDescription
[name]Name of the file
[size]File size
[type]File Type
[tmp_name]Temporary address where the file is located in the server
[error]Error code
Source: errorsea.com