Skip to content

Commit 9077a94

Browse files
authored
Merge pull request #19917 from nextcloud/backport/19888/stable17
[stable17] Get correct mimetype on objectstores
2 parents b96291e + 2bff8fb commit 9077a94

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

lib/private/Files/ObjectStore/ObjectStoreStorage.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -346,12 +346,7 @@ public function rename($source, $target) {
346346

347347
public function getMimeType($path) {
348348
$path = $this->normalizePath($path);
349-
$stat = $this->stat($path);
350-
if (is_array($stat)) {
351-
return $stat['mimetype'];
352-
} else {
353-
return false;
354-
}
349+
return parent::getMimeType($path);
355350
}
356351

357352
public function touch($path, $mtime = null) {

0 commit comments

Comments
 (0)