Skip to content

Kirby 4.4.1

Response::file()

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

Response::file(string $file, array $props = [ ]): Kirby\Cms\Response

Parameters

Name Type Default Description
$file * string
$props array [ ] Custom overrides for response props (e.g. headers)

Return type

Kirby\Cms\Response

Parent class

Kirby\Cms\Response inherited from Kirby\Http\Response