mirror of
https://github.com/Deathgarden-Rebirth/Deathgarden_Rebirth-Rewrite.git
synced 2026-09-10 04:05:22 -05:00
Fix uploading and downloading files
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user