DownloadResponse¶
-
class
OCP\AppFramework\Http\
DownloadResponse
¶ - Prompts the user to download the a file
Source: lib/public/AppFramework/Http/DownloadResponse.php#32 Parent: OCP\AppFramework\Http\Response
Properties¶
Methods¶
-
public
OCP\AppFramework\Http\DownloadResponse::
__construct
($filename, $contentType)¶ - Creates a response that prompts the user to download the file
Source: Parameters: - $filename (string) the name that the downloaded file should have
- $contentType (string) the mimetype that the downloaded file should have
Since: 7.0.0