title: File upload not working in IE, but works in FF, Chrome, and Safari
body: <p>I'm stumped.  I've created an upload image process that works in every browser except Internet Explorer.  I didn't check IE7 but IE8 seems to not check the file extension.  I keep getting the error "you must upload a jpg, gif, bmp."</p>
  
  <pre><code>  /* image uploading */
    $target_path = "img/";
    $image = $_FILES['crebusimage'];
    $image['name'] = mysql_real_escape_string($image['name']);
    $target_path .= $crebustime."_".$image['name'];
    $valid_types = array("image/jpg", "image/jpeg", "image/bmp", "image/gif", "image/jpe", "image/jfif", "image/png");
  
    $field = 'crebusimage';
    if(strlen($image['name']) == 0){
      $form-&gt;setError($field, "*please choose an image");
    }elseif(!in_array($image['type'], $valid_types)){
      $form-&gt;setError($field, "*You must upload a jpg, gif, or bmp");
    }else{
      $busimg = $crebustime."_".$image['name'];
      move_uploaded_file($image['tmp_name'], $target_path);
    }
  
      &lt;td&gt;&lt;b&gt;Business Logo&lt;br /&gt;(100Kb or less 100x100px)&lt;/b&gt;&lt;/td&gt;
      &lt;td&gt;&lt;input type="file" name="crebusimage" value="1"&gt;&lt;/td&gt;
      &lt;td&gt;&lt;input type="hidden" name="MAX_FILE_SIZE" value="100000" /&gt;&lt;/td&gt;
      &lt;td&gt;&lt;?php echo $form-&gt;error('crebusimage'); ?&gt;&lt;/tD&gt;
  </code></pre>
  
  <p>How can I make this thing work in evil IE...</p>