Skip to content

Commit dc52a25

Browse files
authored
Merge pull request #44084 from nextcloud/backport/43983/stable27
[stable27] Use the proper path to check if a file needs to be copied/moved to the actual target storage
2 parents 355bc5e + 93c0335 commit dc52a25

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/dav/lib/Upload/ChunkingV2Plugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ private function completeChunkedWrite(string $targetAbsolutePath): void {
344344

345345
// If the file was not uploaded to the user storage directly we need to copy/move it
346346
try {
347-
$uploadFileAbsolutePath = Filesystem::getRoot() . $uploadFile->getPath();
347+
$uploadFileAbsolutePath = $uploadFile->getFileInfo()->getPath();
348348
if ($uploadFileAbsolutePath !== $targetAbsolutePath) {
349349
$uploadFile = $rootFolder->get($uploadFile->getFileInfo()->getPath());
350350
if ($exists) {

0 commit comments

Comments
 (0)