Skip to content

Commit

Permalink
Suggest download filename with timestamp in it
Browse files Browse the repository at this point in the history
  • Loading branch information
rmunn committed Jan 16, 2025
1 parent 3e100ca commit 2bb137f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/LexBoxApi/Controllers/ProjectController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,9 @@ public async Task<ActionResult> GetLdmlZip(CancellationToken token)
{
var path = await projectService.PrepareLdmlZip(scheduler, token);
if (path is null) return NotFound("No SLDR files available");
var filename = Path.GetFileName(path);
var stream = System.IO.File.OpenRead(path);
return File(stream, "application/zip");
return File(stream, "application/zip", filename);
}

[HttpPost("updateMissingLanguageList")]
Expand Down

0 comments on commit 2bb137f

Please sign in to comment.