开发者

IE visitors get 'save as' dialog on entry

I have a website that displays images, the file that displays the image is named: show_image.php

if I try and display an image on Chrome/FF, everything works as normal, but if I use IE, I get the 'save file as' dialog for the show_ima开发者_如何学运维ge.php file..

How can I solve this?


Could you provide a link or the show_image.php code?

One possible explanation is that the PHP script might set the HTTP header Content-Disposition: attachment which could cause this. See http://php.net/manual/en/function.header.php#example-3678 for more.

Though I believe that should work the same way in Chrome as in IE, so a link would be helpful.

EDIT: What @Pekka said about sending the wrong content type sounds more plausible. Chrome and Fx may be clever enough to figure out that it is an image, and IE may not be.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜