fix: Use proper path when trying to check if a file needs to get copied

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2024-03-04 20:22:45 +01:00
parent b6691b35c7
commit ca453f5b84
No known key found for this signature in database
GPG key ID: 4C614C6ED2CDE6DF

View file

@ -344,7 +344,7 @@ class ChunkingV2Plugin extends ServerPlugin {
// If the file was not uploaded to the user storage directly we need to copy/move it
try {
$uploadFileAbsolutePath = Filesystem::getRoot() . $uploadFile->getPath();
$uploadFileAbsolutePath = $uploadFile->getFileInfo()->getPath();
if ($uploadFileAbsolutePath !== $targetAbsolutePath) {
$uploadFile = $rootFolder->get($uploadFile->getFileInfo()->getPath());
if ($exists) {