以下asp.net代码在Chrome& IE,但Firefox将文件显示为MyDownload.zip.htm
,因此不知道如何处理它。
//ASP.Net file download code
Response.Clear();
Response.AddHeader("content-disposition", "attachment;filename=MyDownload.zip");
Response.TransmitFile(Server.MapPath("~/MyDownload.zip"));
Response.Flush();
如何让Firefox正确识别附件?