From fe0dffdeee202c4b8e2b72857c713586cacc6c0c 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 7a8ff75f246..6ab777f309f 100644 --- a/lib/private/Files/Storage/Wrapper/DirPermissionsMask.php +++ b/lib/private/Files/Storage/Wrapper/DirPermissionsMask.php @@ -88,7 +88,15 @@ class DirPermissionsMask extends PermissionsMask { } 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; }