File download in IE6 gets the wrong filename

前端 未结 2 400
清歌不尽
清歌不尽 2020-12-19 12:09

I have a PHP script being served over https:// that is trying to push a PDF file to the user. The problem that in Internet Explorer 6 (which unfortunately I still have to s

2条回答
  •  孤城傲影
    2020-12-19 12:31

    You can use the following Content-Type to force IE to use the Content-Disposition header.

    (Work in IE7 when you choose to 'open' a file)

    Content-Type: application/save
    

    cf. http://blog.mjjames.co.uk/2009/04/content-disposition-in-different.html

提交回复
热议问题