Skip to content

Kirby 6.0.0

DropdownResponse::file()

Creates a response for a file and sends the file content to the browser

DropdownResponse::file(string $file, array $props = []): DropdownResponse

Parameters

Name Type Default Description
$filerequired string no default value
$props array [] Custom overrides for response props (e.g. headers)

Return type

Kirby\Panel\Response\DropdownResponse

Parent class

Kirby\Panel\Response\DropdownResponse inherited from Kirby\Http\Response