Page 1 of 1

problems using Mozilla browser

Posted: Tue Jan 04, 2005 5:54 pm
by mcog_esteban
hi all.
i have this piece of code to starting uploading images:

Code: Select all

<?php
if ( $_FILES['img']['type'] == "image/gif" || $_FILES['img']['type'] == "image/pjpeg" )

?>
and using Firefox i can't upload jpegs, using IE everything works well
when testing gifs, works well on both.

any ideas why this is not working?
thanks.

Posted: Tue Jan 04, 2005 6:07 pm
by feyd
IE sends image/pjpeg, Firefox sends image/jpeg if I remember right.

Posted: Tue Jan 04, 2005 6:14 pm
by mcog_esteban
i have changed to image/jpeg in Firefox and still not working.

Posted: Tue Jan 04, 2005 6:24 pm
by feyd
seems to work for me.

Posted: Tue Jan 04, 2005 9:56 pm
by rehfeld
mcog_esteban wrote:i have changed to image/jpeg in Firefox and still not working.
i would think the obvious solution would be to
echo $_FILES['img']['type'];

and see what it is...