Uploading files by using PHP

PHP provides $_FILES, which is a built-in array. The PHP $_FILES array contains all information regarding uploaded files.

Handling file attributes are managed in this array, for example, a file name, size, file type (.jpg, .gif, pdf, png etc.).