mirror of
https://github.com/nextcloud/server.git
synced 2024-08-28 05:54:51 +02:00
Fix workflow engine mimetype detection when creating a directory
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
0b5e1814be
commit
394a61f1e6
@ -77,6 +77,12 @@ class FileMimeType extends AbstractStringCheck {
|
||||
}
|
||||
|
||||
if ($this->isWebDAVRequest()) {
|
||||
// Creating a folder
|
||||
if ($this->request->getMethod() === 'MKCOL') {
|
||||
$this->mimeType[$this->storage->getId()][$this->path] = 'httpd/unix-directory';
|
||||
return $this->mimeType[$this->storage->getId()][$this->path];
|
||||
}
|
||||
|
||||
if ($this->request->getMethod() === 'PUT') {
|
||||
$path = $this->request->getPathInfo();
|
||||
$this->mimeType[$this->storage->getId()][$this->path] = $this->mimeTypeDetector->detectPath($path);
|
||||
|
Loading…
Reference in New Issue
Block a user