summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2020-03-11 11:14:12 +0100
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2020-03-12 18:59:58 +0000
commitebba16a2196b0bebbf4e869f16dfdfaa59550785 (patch)
tree14761c482bfbac7cff5df7b2dc06aa50f9eafe76 /lib
parentb54fdae062412c358debc563367525fdbc0a5b24 (diff)
downloadnextcloud-server-ebba16a2196b0bebbf4e869f16dfdfaa59550785.tar.gz
nextcloud-server-ebba16a2196b0bebbf4e869f16dfdfaa59550785.zip
Get correct mimetype on objectstores
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Files/ObjectStore/ObjectStoreStorage.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/private/Files/ObjectStore/ObjectStoreStorage.php b/lib/private/Files/ObjectStore/ObjectStoreStorage.php
index 67b3f2e7286..e0d437839a0 100644
--- a/lib/private/Files/ObjectStore/ObjectStoreStorage.php
+++ b/lib/private/Files/ObjectStore/ObjectStoreStorage.php
@@ -349,12 +349,7 @@ class ObjectStoreStorage extends \OC\Files\Storage\Common {
public function getMimeType($path) {
$path = $this->normalizePath($path);
- $stat = $this->stat($path);
- if (is_array($stat)) {
- return $stat['mimetype'];
- } else {
- return false;
- }
+ return parent::getMimeType($path);
}
public function touch($path, $mtime = null) {