• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
file upload problem in IE

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 ?

if ((($_FILES["uploadedfile"]["type"] == "image/gif")
            || ($_FILES["uploadedfile"]["type"] == "image/jpeg")
            || ($_FILES["uploadedfile"]["type"] == "image/png"))


Why don't you use the file upload library? http://ellislab.com/codeigniter/user-gui...ading.html

What type do you get when you upload using IE? var_dump() the $_FILES array.

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
(if (($_FILES["uploadedfile"]["type"] == "image/jpg")

what does it mean ?

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.

hallo, how to set 3gp in mimes type??

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.