summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2020-03-12 19:58:16 +0100
committerGitHub <noreply@github.com>2020-03-12 19:58:16 +0100
commitb5902b3e1b885db68156b417bdcc5ee986a78597 (patch)
treecce40cc267990e149999af6bed44fef9210ea9b6 /lib
parent9fc2e2551e44e86869558275d015a5444decec88 (diff)
parent9a35e789b4ef46d5a3a6b23606f61ad34b286d40 (diff)
downloadnextcloud-server-b5902b3e1b885db68156b417bdcc5ee986a78597.tar.gz
nextcloud-server-b5902b3e1b885db68156b417bdcc5ee986a78597.zip
Merge pull request #19888 from nextcloud/fix/objectstore_rename_mimetype
Get correct mimetype on objectstores
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) {