Programming question (ASP.NET): HtmlInputFile mimetype of image/jpeg vs image/pjpeg?

I have an ASP.NET page with an HtmlInputFile control. On certain machines,
when a user uploads a jpeg image, the uploaded file has a MIME type of
image/jpeg and on others the uploaded file has a MIME type of image/pjpeg.
What could be causing this difference and how can I make it uniform?

Thanks.

Not familiar with asp.net as such, but you might want to look at the registries of the machines involved…

\HKEY_CLASSES_ROOT.jpg[Content Type] contains the MIME type for files with a .jpg extension if I read this right. Adjust accordingly for a .jpeg extension, .jpe, .jfif or any other extension you’re interested in.

Now, as for the deeper question of what set those registry settings differently on different computers and if any software on them is dependent on those settings… that I’m less sure of. Hope this at least points you in the right direction to start.

Check this out:

http://www.dotnetcoders.com/web/Articles/ShowArticle.aspx?article=57

Thanks, but that seems to refer to problems creating Visual Studio Web Projects. To clarify, this problem is a site that has already been created in Visual Studio, and which works one way when deployed on some servers (namely that images uploaded via this HtmlInputFile control have a MIME type of image/jpeg) and differently on other machines (they show up as image/pjepg).

Any more ideas? Thanks in advance…

ChrisK: thanks but no such luck. the extension .jpg is set for image/jpeg, not image/pjpeg

On the server, or on the client machines uploading??

Both actually