Skip to content

Commit 4cc6e96

Browse files
fix: Uploading files not chuncked
Co-authored-by: David Dreschner <david.dreschner@nextcloud.com> Signed-off-by: Carl Schwan <carl@carlschwan.eu> Signed-off-by: Carl Schwan <carlschwan@kde.org>
1 parent 61d7c0f commit 4cc6e96

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

lib/private/Files/Storage/Wrapper/DirPermissionsMask.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,15 @@ public function getPermissions($path): int {
9494

9595
#[\Override]
9696
public function rename($source, $target): bool {
97-
if (!($this->isDeletable($source) || $this->isUpdatable($source))) {
97+
$isPartialUploadFile = dirname($source) === dirname($target)
98+
&& strpos($source, '.ocTransferId') > 0;
99+
100+
if (
101+
!($isPartialUploadFile
102+
|| $this->isUpdatable($source)
103+
|| $this->isDeletable($source)
104+
)
105+
) {
98106
return false;
99107
}
100108

0 commit comments

Comments
 (0)