Some files are uploaded with a reported MIME type:
image/x-citrix-pjpeg
They are valid jpeg files and I accept them as such.
I was wondering however: why is the MIME type different?
Is there any difference in the format? or was this mimetype invented by some light bulb at citrix for no apparent reason?
Update:
Ok, I did some more searching and testing on this question, and it turns out they’re all lying about MIME-type (never trust any info send by the client, I know).
I’ve checked a bunch of files with different encodings (created with libjpeg)
OfficialMIME type for jpeg files:image/jpegBut some applications (most notably MS Internet Explores but also Yahoo! mail) send jpeg files as
image/pjpegMS Internet explorer send out all jpeg files as pjpeg regardless of the contents of the file.
The same goes for citrix: all jpeg files send from a citrix client are reported as the
image/x-citrix-pjpegMIME type.The files themselves are untouched (identical before and after upload). So it turns out that difference in MIME type is only an indication the software used to send the file?
Why would people invent a new MIME type if there is no differences to the file contents?