public function file($name = null, $default = null)
    {
        $files = $this->request['files'];

        if (isset($name)) {
            return !empty($files[$name]['name']) ? $files[$name] : $default;
        }

        return $files;
    }
public function file($name = null, $default = null)
    {
        $files = $this->request['files'];

        if (isset($name)) {
            return !empty($files[$name]['name']) ? $files[$name] : $default;
        }

        return $files;
    }
public function file ( $ name = null , $ default = null ) { $ files = $ this -> request [ 'files' ] ; if ( isset ( $ name ) ) { return ! empty ( $ files [ $ name ] [ 'name' ] ) ? $ files [ $ name ] : $ default ; } return $ files ; }
Returns a data from FILES request
@param string $name
@param mixed $default
@return mixed
Returns a data from FILES request