Strange problem with IE on Windows

See all posts Reply

Strange problem with IE on Windows new!
by E. Erdem, 15 years, 8 months ago
Hi,
First thank you for your good work. I have a problem with image upload. I allowed image/jpg and image/jpeg in my script. There is no problem with Firefox (On Linux) but when I try to upload same jpg file on Windows with IE it gives "Wrong file type" error.

What could be the problem?Reply
Re: Strange problem with IE on Windows new!
by colin, 15 years, 8 months ago
Can you paste here the log that you get when uploading via IE?

Also, you can try to allow all images:
$handle->allowed = array('image/*')
Reply
Re: Strange problem with IE on Windows new!
by E. Erdem, 15 years, 8 months ago
As I don't want to allow any other image type to be uploaded image/* isn't solution I'm looking for.

Here is the log:
system information
- GD version : 2.0
- supported image types : png jpg gif bmp
- open_basedir : no restriction
- language : tr_TR
source is an uploaded file
- upload OK
- file name OK
- source variables
file_src_name : iso.jpg
file_src_name_body : iso
file_src_name_ext : jpg
file_src_pathname : /tmp/phptjIda8
file_src_mime : image/pjpeg
file_src_size : 69553 (max= 10485760)
file_src_error : 0
- source file is an image
image_src_x : 388
image_src_y : 478
image_src_pixels : 185464
image_src_type : jpg
image_src_bits : 8
process file to /home/herakles/www/os/images/gallery/43/
- file size OK


What is image/pjpeg: "file_src_mime : image/pjpeg"Reply
Re: Strange problem with IE on Windows new!
by colin, 15 years, 8 months ago
Add image/pjpeg to the list of allowed MIME types. IE for some reason uses pjpeg instead of jpg or jpeg... See.Reply
Re: Strange problem with IE on Windows new!
by E. Erdem, 15 years, 8 months ago
Adding "image/pjpeg" as allowed mime type solved my problem.

Thank you...Reply