Merge pull request #19888 from nextcloud/fix/objectstore_rename_mimetype
Get correct mimetype on objectstores
This commit is contained in:
commit
b5902b3e1b
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue