mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Improvement to docs for send_file function
This commit is contained in:
parent
bd2ccf70fa
commit
67c944c962
@ -468,6 +468,8 @@ 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 controllers response, eg
|
||||||
|
* $this->setResponse(HTTPRequest::send_file('the content', 'filename.txt'));
|
||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
* @param $fileData
|
* @param $fileData
|
||||||
|
Loading…
x
Reference in New Issue
Block a user