Skip to content

Commit

Permalink
Fix Filename Return when a path is set in Load Controller (#47)
Browse files Browse the repository at this point in the history
Co-authored-by: Ahmad El Masri <[email protected]>
  • Loading branch information
aem-coding and Ahmad El Masri committed Jan 31, 2024
1 parent f27930e commit d2301c0
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, $data->filename);
return Storage::disk($data->disk)->response($data->path, urlencode($data->filename));
}
}

0 comments on commit d2301c0

Please sign in to comment.