mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
feat(files_sharing): allow uploading to subfolders in File requests
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
This commit is contained in:
parent
b80c57dab3
commit
f45d6135d7
1 changed files with 2 additions and 5 deletions
|
|
@ -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');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue