php 图像/pjpeg 和图像/jpeg
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5147049/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
image/pjpeg and image/jpeg
提问by dynamic
Do you know if I can send to browser the MIME type image/jpeg
even if the image I am outputting is image/Pjpeg
? Or are they different format?
你知道我是否可以将 MIME 类型发送到浏览器,image/jpeg
即使我输出的图像是image/Pjpeg
?或者它们是不同的格式?
采纳答案by naivists
I believe most browsers wouldn't mind, except Internet Explorer which treats pjpeg files differently.
我相信大多数浏览器不会介意,除了 Internet Explorer 以不同的方式处理 pjpeg 文件。
According to this conversation, you should accept both image/pjpeg and image/jpeg from your clients as upload mime types, but force the image/jpeg when serving downloads.
根据此对话,您应该接受来自客户端的 image/pjpeg 和 image/jpeg 作为上传 MIME 类型,但在提供下载服务时强制使用 image/jpeg。