fix(FilesDropPlugin): Also modify Destination header for PUT requests to satisfy the QuotaPlugin

Signed-off-by: provokateurin <kate@provokateurin.de>
This commit is contained in:
provokateurin 2025-11-18 10:26:33 +01:00
parent 1a51e15c3d
commit d332ab60d3
No known key found for this signature in database

View file

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