public function getFiles() : array
    {
        $files = [];

        if (!empty($_FILES)) {
            foreach ($_FILES as $inputName => $phpFile) {
                if (!is_array($phpFile['name'])) {

                    // When this was a single file
                    $files[$inputName] = $this->handleUniqueFile($phpFile);
                } else {

                    //When the input has a 'multiple' attribute
                    $files[$inputName] = $this->handleMultipleFile($phpFile);
                }
            }
        }

        return $files;
    }
public function getFiles() : array
    {
        $files = [];

        if (!empty($_FILES)) {
            foreach ($_FILES as $inputName => $phpFile) {
                if (!is_array($phpFile['name'])) {

                    // When this was a single file
                    $files[$inputName] = $this->handleUniqueFile($phpFile);
                } else {

                    //When the input has a 'multiple' attribute
                    $files[$inputName] = $this->handleMultipleFile($phpFile);
                }
            }
        }

        return $files;
    }
public function getFiles ( ) : array { $ files = [ ] ; if ( ! empty ( $ _FILES ) ) { foreach ( $ _FILES as $ inputName => $ phpFile ) { if ( ! is_array ( $ phpFile [ 'name' ] ) ) { // When this was a single file $ files [ $ inputName ] = $ this -> handleUniqueFile ( $ phpFile ) ; } else { //When the input has a 'multiple' attribute $ files [ $ inputName ] = $ this -> handleMultipleFile ( $ phpFile ) ; } } } return $ files ; }
Gets an array of uploaded files,
from the request.

@return array
Gets an array of uploaded files from the request .