Filter: gk/foundation/secure-download/headers
Filters the headers sent for a secure file download.
Parameters
| Name | Type | Description |
|---|---|---|
| $headers | array | Array of headers to be sent. |
| $context | array | Context data for the download. |
| ↳ $file_path | string | The absolute path to the file. |
| ↳ $file_name | string | Filename to use in response. |
| ↳ $mime_type | string | MIME type of the file. |
| ↳ $file_size | int | Total file size in bytes. |
| ↳ $range_start | int | Byte offset to start from. |
| ↳ $range_end | int | Byte offset to end at. |
| ↳ $token_data | array | Token payload data. |
| ↳ $partial_content | bool | Whether this is a partial content response. |
Since
- 1.3.0
Source
Defined in Components/SecureDownload.php at line 912