Skip to content

Commit

Permalink
fix the download format of the xlsx file.
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasmueller committed Feb 13, 2025
1 parent c060f1d commit d1e015b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/SGN/Controller/AJAX/TrialMetadata.pm
Original file line number Diff line number Diff line change
Expand Up @@ -4812,7 +4812,7 @@ sub download_entry_number_template : Path('/ajax/breeders/trial_entry_numbers/do
my $tempfile = $c->req->param('file');

$c->res->content_type('application/vnd.ms-excel');
$c->res->header('Content-Disposition', qq[attachment; filename="entry_number_template.xls"]);
$c->res->header('Content-Disposition', qq[attachment; filename="entry_number_template.xlsx"]);
my $output = read_file($tempfile);
$c->res->body($output);
}
Expand Down

0 comments on commit d1e015b

Please sign in to comment.