mirror of
https://github.com/nextcloud/server.git
synced 2026-05-22 01:55:56 -04:00
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>
This commit is contained in:
parent
8850c29505
commit
23447f1ec1
1 changed files with 9 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue