Skip to content

Kirby 3.8.4

Response::file()

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

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

Parameters

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

Return type

Kirby\Http\Response

Parent class

Kirby\Http\Response