From 281949faa41041cb641b190b81c8d6135eaa4278 Mon Sep 17 00:00:00 2001 From: provokateurin Date: Tue, 18 Nov 2025 10:26:33 +0100 Subject: [PATCH] fix(FilesDropPlugin): Also modify Destination header for PUT requests to satisfy the QuotaPlugin Signed-off-by: provokateurin --- apps/dav/lib/Files/Sharing/FilesDropPlugin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/dav/lib/Files/Sharing/FilesDropPlugin.php b/apps/dav/lib/Files/Sharing/FilesDropPlugin.php index 930f06cb232..796950fb67f 100644 --- a/apps/dav/lib/Files/Sharing/FilesDropPlugin.php +++ b/apps/dav/lib/Files/Sharing/FilesDropPlugin.php @@ -69,8 +69,8 @@ class FilesDropPlugin extends ServerPlugin { public function beforeMethod(RequestInterface $request, ResponseInterface $response) { $isChunkedUpload = $this->isChunkedUpload($request); - // For the final MOVE request of a chunked upload it is necessary to modify the Destination header. - if ($isChunkedUpload && $request->getMethod() !== 'MOVE') { + // For the PUT and MOVE requests of a chunked upload it is necessary to modify the Destination header. + if ($isChunkedUpload && $request->getMethod() !== 'MOVE' && $request->getMethod() !== 'PUT') { return; }