diff options
Diffstat (limited to 'lib/private/preview/provider.php')
-rw-r--r-- | lib/private/preview/provider.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/private/preview/provider.php b/lib/private/preview/provider.php index f769823f6e6..f544c2c4b13 100644 --- a/lib/private/preview/provider.php +++ b/lib/private/preview/provider.php @@ -11,6 +11,16 @@ abstract class Provider { abstract public function getMimeType(); /** + * Check if a preview can be generated for $path + * + * @param string $path + * @return bool + */ + public function isAvailable($path) { + return true; + } + + /** * get thumbnail for file at path $path * @param string $path Path of file * @param int $maxX The maximum X size of the thumbnail. It can be smaller depending on the shape of the image |