Skip to content

Commit

Permalink
Suport UTF-8 filenames in download_file_endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
adamziel committed Jan 1, 2025
1 parent 6956b58 commit b2755d7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ static public function download_file_endpoint($request) {

// Set headers for file download
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename="' . $filename . '"');
header("Content-Disposition: attachment; filename=UTF-8''" . urlencode($filename));
header('Content-Length: ' . $filesize);
header('Cache-Control: no-cache');

Expand Down

0 comments on commit b2755d7

Please sign in to comment.