mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #9300 from LABCAT/patch-1
Improvement to docs for send_file function
This commit is contained in:
commit
77ccadd663
@ -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 be called inside the controller’s response, e.g.:
|
||||
* <code>$this->setResponse(HTTPRequest::send_file('the content', 'filename.txt'));</code>
|
||||
*
|
||||
* @static
|
||||
* @param $fileData
|
||||
|
Loading…
Reference in New Issue
Block a user