feat(files_sharing): allow uploading to subfolders in File requests

Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
This commit is contained in:
skjnldsv 2024-07-16 21:25:34 +02:00
parent b80c57dab3
commit f45d6135d7

View file

@ -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');
}