![]() |
file upload problem in IE - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: file upload problem in IE (/showthread.php?tid=21892) |
file upload problem in IE - El Forum - 08-24-2009 [eluser]quest13[/eluser] When I tried to upload the image in IE , the following code is not recognising JPG format in IE. But the same is working in Firefox. Any body can help me on this ? Code: if ((($_FILES["uploadedfile"]["type"] == "image/gif") thanks file upload problem in IE - El Forum - 08-24-2009 [eluser]pistolPete[/eluser] Why don't you use the file upload library? http://ellislab.com/codeigniter/user-guide/libraries/file_uploading.html What type do you get when you upload using IE? var_dump() the $_FILES array. file upload problem in IE - El Forum - 08-24-2009 [eluser]quest13[/eluser] Thanks for the reply. I will try out with upload library however, I got this when I did var_dump string(11) "image/pjpeg" for Code: (if (($_FILES["uploadedfile"]["type"] == "image/jpg") what does it mean ? file upload problem in IE - El Forum - 08-24-2009 [eluser]pistolPete[/eluser] IE reports the file's mime type as "image/pjpeg". If you use the upload library, this mime type is already in mimes.php, so uploading should work in IE. file upload problem in IE - El Forum - 11-26-2009 [eluser]deepydee[/eluser] hallo, how to set 3gp in mimes type?? |