RequestResponse::file()
Creates a response for a file and sends the file content to the browser
RequestResponse::file(string $file, array $props = []): RequestResponse
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\RequestResponse
Parent class
Kirby\Panel\Response\RequestResponse
inherited from Kirby\Http\Response