mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Update HTTPRequest.php
This commit is contained in:
parent
630c6c0514
commit
501d9a1480
@ -468,7 +468,7 @@ class HTTPRequest implements ArrayAccess
|
|||||||
* Construct an HTTPResponse that will deliver a file to the client.
|
* 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),
|
* 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.
|
* it's only advisable to send small files through this method.
|
||||||
* This function needs to called inside the controller’s response, e.g.:
|
* This function needs to be called inside the controller’s response, e.g.:
|
||||||
* <code>$this->setResponse(HTTPRequest::send_file('the content', 'filename.txt'));</code>
|
* <code>$this->setResponse(HTTPRequest::send_file('the content', 'filename.txt'));</code>
|
||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
|
Loading…
Reference in New Issue
Block a user