diff options
Diffstat (limited to 'lib/public/AppFramework/Http/FileDisplayResponse.php')
-rw-r--r-- | lib/public/AppFramework/Http/FileDisplayResponse.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/public/AppFramework/Http/FileDisplayResponse.php b/lib/public/AppFramework/Http/FileDisplayResponse.php index ab23701f893..f5b9a1cf2b9 100644 --- a/lib/public/AppFramework/Http/FileDisplayResponse.php +++ b/lib/public/AppFramework/Http/FileDisplayResponse.php @@ -66,4 +66,13 @@ class FileDisplayResponse extends Response implements ICallbackResponse { $output->setOutput($this->file->getContent()); } } + + /** + * Returns the response file. + * + * @return \OCP\Files\File|\OCP\Files\SimpleFS\ISimpleFile + */ + public function getFile() { + return $this->file; + } } |