Get correct mimetype on objectstores

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
pull/19888/head
Roeland Jago Douma 6 years ago
parent 24d0fb9fcd
commit 9a35e789b4
No known key found for this signature in database
GPG Key ID: F941078878347C0C
  1. 7
      lib/private/Files/ObjectStore/ObjectStoreStorage.php

@ -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…
Cancel
Save