diff --git a/app/common/service/UploadService.php b/app/common/service/UploadService.php index 4204020..43684cf 100644 --- a/app/common/service/UploadService.php +++ b/app/common/service/UploadService.php @@ -68,7 +68,7 @@ class UploadService $counter = 1; while (true) { $candidatePath = $dir . $candidateName; - $existing = $uploadedFilesService->getFile(['file_path' => $candidatePath]); + $existing = $uploadedFilesService->findFile(['file_path' => $candidatePath]); if (!$existing) { break; }