Skip to content

Commit fe0dffd

Browse files
CarlSchwanDerDreschner
authored andcommitted
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 9a06ac7 commit fe0dffd

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
@@ -88,7 +88,15 @@ 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+
) {
92100
return false;
93101
}
94102

0 commit comments

Comments
 (0)