Skip to content

Commit 9d8e55d

Browse files
authored
Merge pull request #44085 from nextcloud/backport/43983/stable28
[stable28] Use the proper path to check if a file needs to be copied/moved to the actual target storage
2 parents 7d58ae3 + 0bc8908 commit 9d8e55d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)