mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Update src/Control/HTTPRequest.php
Co-Authored-By: Robbie Averill <robbie@averill.co.nz>
This commit is contained in:
parent
d3a17958ef
commit
630c6c0514
@ -468,7 +468,7 @@ class HTTPRequest implements ArrayAccess
|
||||
* Construct an HTTPResponse that will deliver a file to the client.
|
||||
* Caution: Since it requires $fileData to be passed as binary data (no stream support),
|
||||
* it's only advisable to send small files through this method.
|
||||
* this function needs to called inside the controllers response, eg
|
||||
* This function needs to called inside the controller’s response, e.g.:
|
||||
* <code>$this->setResponse(HTTPRequest::send_file('the content', 'filename.txt'));</code>
|
||||
*
|
||||
* @static
|
||||
|
Loading…
Reference in New Issue
Block a user