Merge pull request #12127 from nextcloud/fix/proper_folder_mimetype
A folder should get a folder mimetype
This commit is contained in:
commit
2d50478492
1 changed files with 5 additions and 0 deletions
|
@ -76,6 +76,11 @@ class FileMimeType extends AbstractStringCheck {
|
|||
return $this->mimeType[$this->storage->getId()][$this->path];
|
||||
}
|
||||
|
||||
if ($this->storage->is_dir($this->path)) {
|
||||
$this->mimeType[$this->storage->getId()][$this->path] = 'httpd/unix-directory';
|
||||
return $this->mimeType[$this->storage->getId()][$this->path];
|
||||
}
|
||||
|
||||
if ($this->isWebDAVRequest()) {
|
||||
// Creating a folder
|
||||
if ($this->request->getMethod() === 'MKCOL') {
|
||||
|
|
Loading…
Reference in a new issue