Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
ie sends wrong ext when uploading jpeg
Old 08-31-2008, 11:13 PM ie sends wrong ext when uploading jpeg
Junior Talker

Posts: 3
Name: sanjeevan sivapalan
Trades: 0
i made an image uploading script which then creates thumbnail. it works perfectly except when user upload jpeg via internet explorer. rather than sending image/jpeg as image type, it sends image/pjpeg (note the p in front of jpeg). anybody know how or why this happens? thanks.
sanjeevan is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-31-2008, 11:41 PM Re: ie sends wrong ext when uploading jpeg
blackfalcon's Avatar
Skilled Talker

Latest Blog Post:
New Site: 10DollarBluRay.com
Posts: 62
Name: JuanJose H. Galvez
Trades: 0
Yeah, it depends on the way the image was created. Some programs create the images a little differently and ie sends the mime type differently. I try not to accept most information (especially regarding mime types as that can be modified by the end user) as truth. Normally I'll accept the file and then use the MIME_Type pear package to check the mime type:

http://pear.php.net/package/MIME_Type

Good luck and enjoy!
__________________
Latest Project:
Please login or register to view this content. Registration is FREE
<--CHECK IT OUT!
My Company:
Please login or register to view this content. Registration is FREE

I'm
Please login or register to view this content. Registration is FREE
blackfalcon is offline
Reply With Quote
View Public Profile Visit blackfalcon's homepage!
 
Old 09-02-2008, 07:04 PM Re: ie sends wrong ext when uploading jpeg
Skilled Talker

Posts: 85
Name: Ilyes Rhouma
Trades: 0
Hello,
This is not an error/bug in ie.
Pjpeg is a valide image extension, and it means Progressive jpeg (this means it can be streamed and displayed while it is loading.)

For more details, check out:
http://www.houseoffusion.com/groups/...threadid:23554
http://seewhatever.de/blog/?p=50
http://filext.com/file-extension/PJPEG
You may also search google for it

I hope you will find a solution, if there still one.
__________________
Want a cheap and custom programmer or writer ?
Please login or register to view this content. Registration is FREE

Are you
Please login or register to view this content. Registration is FREE
? Start
Please login or register to view this content. Registration is FREE
free and earning money !
Please login or register to view this content. Registration is FREE
Ilyes is offline
Reply With Quote
View Public Profile Visit Ilyes's homepage!
 
Reply     « Reply to ie sends wrong ext when uploading jpeg
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.13878 seconds with 12 queries