Image Type problem while uploading image

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
vinoth
Forum Contributor
Posts: 113
Joined: Thu Aug 02, 2007 3:08 am
Location: India
Contact:

Image Type problem while uploading image

Post by vinoth »

Hi all.
I am try to upload the jpeg,Gif,Png images.
Its not uploading on IE7.

I check the following conditions while uploading
image type = image/jpeg or image/gif or image/png;

But in IE7 if i print the image details It returns image/pjpeg for jpeg files & image/x-png for png files.
What is the difference between jpeg/pjpeg nad png/x-png.

Provide your suggestions to resolve the problem.

Thanks in advance.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Image Type problem while uploading image

Post by Christopher »

They are the same. IE returns those MIME types instead of the standard ones. You will need to check for both.
(#10850)
Post Reply