Skip to content

Kirby 4.4.1

Response::download()

Creates a response that triggers a file download for the given file

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

Parameters

Name Type Default Description
$file * string
$filename string|null null
$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