IE cannot download files over SSL served by WebSphere

后端 未结 6 1757
眼角桃花
眼角桃花 2021-02-15 18:22

IE 7 & 8 both throw an error when users attempt to download a csv file over https.

Internet Explorer cannot download downloadPage.jsf. Internet Explor

6条回答
  •  故里飘歌
    2021-02-15 18:47

    Here's what I've done in my PHP code:

    header( "HTTP/1.0 200 OK" );
    header( "Content-Disposition: inline; filename=$path" );
    header( "Content-Type: attachment; application/pdf" );
    header( "Content-Length: $info[7]" );
    header( "Cache-Control: no-store, no-cache" );          // IE 8 requires these two lines, exactly like this
    header( "Pragma: private" );                            // IE 8 requires these two lines, exactly like this
    readfile( $tmpfile );
    

提交回复
热议问题