aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/dav/lib/Files/Sharing/FilesDropPlugin.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/apps/dav/lib/Files/Sharing/FilesDropPlugin.php b/apps/dav/lib/Files/Sharing/FilesDropPlugin.php
index 2f4bacf69d4..c4d1957c67e 100644
--- a/apps/dav/lib/Files/Sharing/FilesDropPlugin.php
+++ b/apps/dav/lib/Files/Sharing/FilesDropPlugin.php
@@ -22,10 +22,7 @@ class FilesDropPlugin extends ServerPlugin {
/** @var bool */
private $enabled = false;
- /**
- * @param View $view
- */
- public function setView($view) {
+ public function setView(View $view) {
$this->view = $view;
}
@@ -52,7 +49,7 @@ class FilesDropPlugin extends ServerPlugin {
return;
}
- if ($request->getMethod() !== 'PUT') {
+ if ($request->getMethod() !== 'PUT' && $request->getMethod() !== 'MKCOL') {
throw new MethodNotAllowed('Only PUT is allowed on files drop');
}