Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does IE7 specify a mime-type of image/pjpeg rather than just image/jpeg?

When uploading a file (jpeg) via a form in IE7 I am seeing a mime-type of "image/pjpeg" instead of "image/jpeg" (as I see in Firefox or similar). It's easy enough to work around this problem, but I'm just wondering why IE7 is behaving differently in this case?

like image 799
John Montgomery Avatar asked Sep 22 '08 15:09

John Montgomery


People also ask

What is image Pjpeg?

A PJPEG file is a bitmap image created in the Progressive JPEG format (PJPEG). It contains encoded bitmap data so that the downloaded image appears progressively from a blurry picture to the final sharp image. PJPEG files may also fill alternating horizontal lines until the full picture is revealed.

Are JPEG images valid?

You should use image/jpeg . Only image/jpeg is recognised as the actual mime type for JPEG files.


1 Answers

I believe it's because the JPEG you're working with is a progressive JPEG, which has a different mime-type.

like image 117
Pseudo Masochist Avatar answered Nov 24 '22 20:11

Pseudo Masochist