JsonResponse::download()
Creates a response that triggers a file download for the given file
JsonResponse::download(string $file, string|null $filename = null, array $props = []): JsonResponse
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| $filerequired | string |
no default value | |
| $filename | stringornull |
null
|
|
| $props | array |
[]
|
Custom overrides for response props (e.g. headers) |
Return type
Kirby\Panel\Response\JsonResponse
Parent class
Kirby\Panel\Response\JsonResponse
inherited from Kirby\Http\Response