Skip to content

Commit

Permalink
Merge pull request #19916 from nextcloud/backport/19888/stable18
Browse files Browse the repository at this point in the history
[stable18] Get correct mimetype on objectstores
  • Loading branch information
rullzer committed Mar 13, 2020
2 parents f367168 + ebba16a commit 16e0908
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/private/Files/ObjectStore/ObjectStoreStorage.php
Expand Up @@ -349,12 +349,7 @@ public function rename($source, $target) {

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

0 comments on commit 16e0908

Please sign in to comment.