Fix uploading and downloading files

This commit is contained in:
RainbowShaggy
2024-11-07 20:22:30 +01:00
committed by Miraak
parent a6e463d929
commit 8eb0169b51
2 changed files with 9 additions and 3 deletions

View File

@@ -22,7 +22,7 @@ public function getFileWithPatchline(string $patchlineName, string $hash) : Bina
if($gameFile === null)
return response()->json('File not found', 404);
$filePath = DIRECTORY_SEPARATOR . str($patchlineName)->lower() . DIRECTORY_SEPARATOR . $gameFile->name;
$filePath = DIRECTORY_SEPARATOR . str($patchlineName)->lower() . DIRECTORY_SEPARATOR . $gameFile->filename;
if (!$disk->exists($filePath)) {
return response()->json('File not found', 404);