Skip to content

Commit 16e0908

Browse files
authored
Merge pull request #19916 from nextcloud/backport/19888/stable18
[stable18] Get correct mimetype on objectstores
2 parents f367168 + ebba16a commit 16e0908

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
@@ -349,12 +349,7 @@ public function rename($source, $target) {
349349

350350
public function getMimeType($path) {
351351
$path = $this->normalizePath($path);
352-
$stat = $this->stat($path);
353-
if (is_array($stat)) {
354-
return $stat['mimetype'];
355-
} else {
356-
return false;
357-
}
352+
return parent::getMimeType($path);
358353
}
359354

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

0 commit comments

Comments
 (0)