Get correct mimetype on objectstores

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
pull/19888/head
Roeland Jago Douma 2020-03-11 11:14:12 +07:00
parent 24d0fb9fcd
commit 9a35e789b4
No known key found for this signature in database
GPG Key ID: F941078878347C0C
1 changed files with 1 additions and 6 deletions

@ -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) {