Webiny\Component\Http\Request::files PHP Method

files() public method

If you have a multi-dimensional upload field name, than you should pass the optional $arrayOffset param to get the right File object.
public files ( string $name, null | integer $arrayOffset = null ) : File
$name string Name of the upload field.
$arrayOffset null | integer Optional array offset for multi-dimensional upload fields.
return Webiny\Component\Http\Request\Files\File
    public function files($name, $arrayOffset = null)
    {
        try {
            return $this->files->get($name, $arrayOffset);
        } catch (Files\FilesException $e) {
            throw $e;
        }
    }