summaryrefslogtreecommitdiffstats
path: root/lib/public/IPreview.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-10-16 20:42:35 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2016-11-03 14:00:33 +0100
commitd720a2fb5719122a0250d63c269380c6ba413755 (patch)
tree63360dc37fdbcbbb95eba24c12700008ec46d4e3 /lib/public/IPreview.php
parent2164085f22b56a3d9739a57788a93779a0d6ac39 (diff)
downloadnextcloud-server-d720a2fb5719122a0250d63c269380c6ba413755.tar.gz
nextcloud-server-d720a2fb5719122a0250d63c269380c6ba413755.zip
Moved over files_versions
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/public/IPreview.php')
-rw-r--r--lib/public/IPreview.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/public/IPreview.php b/lib/public/IPreview.php
index 0942db4784c..c6417b4d182 100644
--- a/lib/public/IPreview.php
+++ b/lib/public/IPreview.php
@@ -96,11 +96,12 @@ interface IPreview {
* @param int $height
* @param bool $crop
* @param string $mode
+ * @param string $mimeType To force a given mimetype for the file (files_versions needs this)
* @return ISimpleFile
* @throws NotFoundException
* @since 9.2.0
*/
- public function getPreview(File $file, $width = -1, $height = -1, $crop = false, $mode = IPreview::MODE_FILL);
+ public function getPreview(File $file, $width = -1, $height = -1, $crop = false, $mode = IPreview::MODE_FILL, $mimeType = null);
/**
* Returns true if the passed mime type is supported