Skip to content

Commit b4b4deb

Browse files
fix: Uploading files not chuncked
Co-authored-by: David Dreschner <david.dreschner@nextcloud.com> Signed-off-by: Carl Schwan <carl@carlschwan.eu>
1 parent 5efd306 commit b4b4deb

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

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

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,17 @@ public function getPermissions($path): int {
8888
}
8989

9090
public function rename($source, $target): bool {
91-
if (!($this->isDeletable($source) || $this->isUpdatable($source))) {
91+
$isPartialUploadFile = dirname($source) === dirname($target)
92+
&& strpos($source, '.ocTransferId') > 0;
93+
94+
if (
95+
!($isPartialUploadFile
96+
|| $this->isUpdatable($source)
97+
|| $this->isDeletable($source)
98+
)
99+
) {
100+
return false;
101+
}
92102
return false;
93103
}
94104

0 commit comments

Comments
 (0)