mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02: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.
|
||||
* 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->setResponse(HTTPRequest::send_file('the content', 'filename.txt'));
|
||||
*
|
||||
* @static
|
||||
* @param $fileData
|
||||
|
Loading…
Reference in New Issue
Block a user