Skip to content

Commit

Permalink
Fix filenames not being shown correctly when preview is enabled (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
milewski committed Jan 5, 2024
1 parent 1afe689 commit f27930e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Controllers/LoadController.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ public function __invoke(NovaRequest $request): StreamedResponse
{
$data = Data::fromEncrypted($request->input('serverId'));

return Storage::disk($data->disk)->response($data->path);
return Storage::disk($data->disk)->response($data->path, $data->filename);
}
}

0 comments on commit f27930e

Please sign in to comment.