SecureFileController::sendFile
Output file to the browser
For performance reasons, we avoid SS_HTTPResponse and just output the contents instead.
Signature
public function sendFile(File
$file,
[string|null
$name = NULL,
[string|null
$disposition = NULL]] )
Parameters
$file
— object- to output
$name
— object- Optional filename override value
$disposition
— object- Optional content disposition override value
Returns
- bool|string|void