diff options
author | skjnldsv <skjnldsv@protonmail.com> | 2024-07-16 21:25:34 +0200 |
---|---|---|
committer | skjnldsv <skjnldsv@protonmail.com> | 2024-07-18 19:47:11 +0200 |
commit | f45d6135d7f707d34017312e975137c645d202c7 (patch) | |
tree | be17ef813d6464a54881a20ec2913876437ee889 | |
parent | b80c57dab362b00b4d5a129f35f29c5d431837d2 (diff) | |
download | nextcloud-server-f45d6135d7f707d34017312e975137c645d202c7.tar.gz nextcloud-server-f45d6135d7f707d34017312e975137c645d202c7.zip |
feat(files_sharing): allow uploading to subfolders in File requests
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
-rw-r--r-- | apps/dav/lib/Files/Sharing/FilesDropPlugin.php | 7 |
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'); } |