我在 chrome 中遇到了一个奇怪的问题。我从服务器获取图像,它在 Firefox 中运行良好,但在 chrome 中,图像加载一次,然后显示为损坏的图像。
在 Chrome 的控制台中,我收到以下消息:
Resource interpreted as Image but transferred with MIME type text/html: "http://46.137.249.133:8080/Smart/Request/query.htm?ReqType=SessionUnawareAttachmentDownloadReqType&Thumbnail=Yes&AttachmentRowID=344929138455741006"
GET http://46.137.249.133:8080/Smart/Request/query.htm?ReqType=SessionUnawareAttachmentDownloadReqType&Thumbnail=Yes&AttachmentRowID=344929138455741006
我还检查了 mime 类型,但它的图像/jpeg。这是输出getimagesize()
Array
(
[0] => 289
[1] => 202
[2] => 2
[3] => width="289" height="202"
[bits] => 8
[channels] => 3
[mime] => image/jpeg
)