From 23447f1ec18ccd7ce2fa3b970dfe228dd887e34a Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Tue, 5 May 2026 14:45:26 +0200 Subject: [PATCH] fix: Uploading files not chuncked Co-authored-by: David Dreschner Signed-off-by: Carl Schwan Signed-off-by: Carl Schwan --- .../Files/Storage/Wrapper/DirPermissionsMask.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/private/Files/Storage/Wrapper/DirPermissionsMask.php b/lib/private/Files/Storage/Wrapper/DirPermissionsMask.php index abc955631ae..7989002496e 100644 --- a/lib/private/Files/Storage/Wrapper/DirPermissionsMask.php +++ b/lib/private/Files/Storage/Wrapper/DirPermissionsMask.php @@ -94,7 +94,15 @@ class DirPermissionsMask extends PermissionsMask { #[\Override] public function rename($source, $target): bool { - if (!($this->isDeletable($source) || $this->isUpdatable($source))) { + $isPartialUploadFile = dirname($source) === dirname($target) + && strpos($source, '.ocTransferId') > 0; + + if ( + !($isPartialUploadFile + || $this->isUpdatable($source) + || $this->isDeletable($source) + ) + ) { return false; }