Skip to content

Commit 1cac241

Browse files
authored
Merge pull request #12298 from nextcloud/backport/12127/stable13
[13] A folder should get a folder mimetype
2 parents 450b9e2 + fc49fa1 commit 1cac241

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

apps/workflowengine/lib/Check/FileMimeType.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ protected function getActualValue() {
7676
return $this->mimeType[$this->storage->getId()][$this->path];
7777
}
7878

79+
if ($this->storage->is_dir($this->path)) {
80+
$this->mimeType[$this->storage->getId()][$this->path] = 'httpd/unix-directory';
81+
return $this->mimeType[$this->storage->getId()][$this->path];
82+
}
83+
7984
if ($this->isWebDAVRequest()) {
8085
// Creating a folder
8186
if ($this->request->getMethod() === 'MKCOL') {

0 commit comments

Comments
 (0)