context.Response.AppendHeader( "Content-Disposition", $"attachment; Filename=\"{saveFileName}\"" ) code example
Example: c# response.contenttype set filename
Response.AppendHeader("Content-Disposition", "attachment; filename=MyFile.pdf");
Response.AppendHeader("Content-Disposition", "attachment; filename=MyFile.pdf");