Skip to content

Commit bdbed91

Browse files
juliusknorrbackportbot[bot]
authored andcommitted
fix: Use proper path when trying to check if a file needs to get copied
Signed-off-by: Julius Härtl <jus@bitgrid.net>
1 parent 89b8f86 commit bdbed91

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)