Skip to content

Commit

Permalink
Update Files.php
Browse files Browse the repository at this point in the history
  • Loading branch information
jannisnikoy committed Apr 23, 2024
1 parent 1362059 commit 33218a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Files.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public static function getFileFromBucket(?string $bucket, string $fileId, ?int $
$extension = $mime[1];
$extension = str_replace('jpeg', 'jpg', $extension);

$filePath = $config->get('storage_dir') . $row->id . '.' . $extension;
$filePath = $config->get('storage_dir') . '/' . $row->id . '.' . $extension;

if(file_exists($filePath)) {
header('Content-Type: ' . $row->mime_type);
Expand Down

0 comments on commit 33218a7

Please sign in to comment.