Merge pull request #19916 from nextcloud/backport/19888/stable18

[stable18] Get correct mimetype on objectstores
This commit is contained in:
Roeland Jago Douma 2020-03-13 09:40:36 +01:00 committed by GitHub
commit 16e0908fb7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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