class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
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.
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?
Also, you can try to allow all images:
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"
Thank you...