From 9a35e789b4ef46d5a3a6b23606f61ad34b286d40 Mon Sep 17 00:00:00 2001
From: Roeland Jago Douma <roeland@famdouma.nl>
Date: Wed, 11 Mar 2020 11:14:12 +0100
Subject: [PATCH] Get correct mimetype on objectstores

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
---
 lib/private/Files/ObjectStore/ObjectStoreStorage.php | 7 +------
 1 file changed, 1 insertion(+), 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) {
-- 
GitLab