Skip to content

Commit

Permalink
feat(files_sharing): allow uploading to subfolders in File requests
Browse files Browse the repository at this point in the history
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
  • Loading branch information
skjnldsv committed Jul 17, 2024
1 parent 7c5b854 commit 1a5deb8
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions apps/dav/lib/Files/Sharing/FilesDropPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand All @@ -52,7 +49,7 @@ public function beforeMethod(RequestInterface $request, ResponseInterface $respo
return;
}

if ($request->getMethod() !== 'PUT') {
if ($request->getMethod() !== 'PUT' && $request->getMethod() !== 'MKCOL') {
throw new MethodNotAllowed('Only PUT is allowed on files drop');
}

Expand Down

0 comments on commit 1a5deb8

Please sign in to comment.