Skip to content

Kirby 5.0.4

$request->file()

Fetches a single file array from the Files object by key

$request->file(string $key): array|null

Parameters

Name Type Default
$keyrequired string no default value

Return types

arrayornull

This method modifies the existing $request object it is applied to and returns it again.

Parent class

Kirby\Http\Request