diff options
author | Joas Schilling <coding@schilljs.com> | 2017-03-23 12:45:36 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-03-23 12:45:36 +0100 |
commit | 394a61f1e62d143addcec44ce9479994f8fbc587 (patch) | |
tree | 0c0ffa3e12829f7ff7627bc485ae0bafb834c73e /apps | |
parent | 0b5e1814bea3a2f14e8fc2551cfcfc61604462d9 (diff) | |
download | nextcloud-server-394a61f1e62d143addcec44ce9479994f8fbc587.tar.gz nextcloud-server-394a61f1e62d143addcec44ce9479994f8fbc587.zip |
Fix workflow engine mimetype detection when creating a directory
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/workflowengine/lib/Check/FileMimeType.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/workflowengine/lib/Check/FileMimeType.php b/apps/workflowengine/lib/Check/FileMimeType.php index 8608fffd4e2..fe4a83bb906 100644 --- a/apps/workflowengine/lib/Check/FileMimeType.php +++ b/apps/workflowengine/lib/Check/FileMimeType.php @@ -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); |