我有一个处理从我的网站下载的处理程序。但是当我尝试在 Mac 上下载 mp4 时,它只会打开另一个窗口并在 quicktime 中打开电影。
context.Response.ContentType = dd.Type.Mime;
context.Response.AddHeader("Content-Disposition", "attachment; filename=\"" + dd.Document.FileName + "\"");
dd.Type.Mime = 应用程序/八位字节流
据我所知, application/octet-stream 应该强制下载...
C#