my upload form doe not work on IE?

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

User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Never ever ever ever use the "type" element supplied in the $_FILES entry. That information is supplied by the client submitting and is not even remotely checked by PHP.

Verify the file using getimagesize() and/or mime_content_type().
saumya
Forum Contributor
Posts: 193
Joined: Sun Jan 30, 2005 10:21 pm

Post by saumya »

thank you so much. I will take care of that.

But the question is still there for JPG processing in PHP for both the browsers !!
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

You wouldn't need browser specific code if you used getimagesize().
Post Reply