Response.AddHeader(“Content-Disposition”) not opening file in IE6

前端 未结 2 652
庸人自扰
庸人自扰 2020-12-03 02:06

I\'m using Response.AddHeader(\"Content-Disposition\", \"attachment; filename=\" + Server.HtmlEncode(FileName)); to pop a \'open/save file\' dialog for the users, so that th

2条回答
  •  抹茶落季
    2020-12-03 02:54

    Try this setting the content type to octet stream:

    Response.ContentType = "application/octet-stream";
    

提交回复
热议问题