Merge pull request #19888 from nextcloud/fix/objectstore_rename_mimetype

Get correct mimetype on objectstores
This commit is contained in:
Roeland Jago Douma 2020-03-12 19:58:16 +01:00 committed by GitHub
commit b5902b3e1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 6 deletions

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