mirror of
https://github.com/nextcloud/server.git
synced 2026-04-07 18:16:14 -04:00
Get correct mimetype on objectstores
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
b54fdae062
commit
ebba16a219
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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue