Skip to main content

Filter: gk/foundation/secure-download/headers

Filters the headers sent for a secure file download.

Parameters

NameTypeDescription
$headersarrayArray of headers to be sent.
$contextarrayContext data for the download.
↳ $file_pathstringThe absolute path to the file.
↳ $file_namestringFilename to use in response.
↳ $mime_typestringMIME type of the file.
↳ $file_sizeintTotal file size in bytes.
↳ $range_startintByte offset to start from.
↳ $range_endintByte offset to end at.
↳ $token_dataarrayToken payload data.
↳ $partial_contentboolWhether this is a partial content response.

Since

  • 1.3.0

Source

Defined in Components/SecureDownload.php at line 912