title: Image upload not working in IE?
body: <p><em><strong>PLEASE HELP!</em></strong></p>
  
  <p>I've an image uploader which seems to be working great in every browser except IE :(</p>
  
  <p>It seems to just get stuck with a loading GIF and do nothing. Is it likely to be the above code or could it be the JavaScript in the actual upload page?</p>
  
  <p><strong>Any suggestions?...</strong></p>
  
  <pre><code>&lt;?php
  session_start();
  include 'resizeimage.php';
  include '../conf/config.php';
  $loggedin = $_SESSION['loggedin_user'];
  $getmid = mysql_query("SELECT * FROM members WHERE Username = '$loggedin'");
  while($iamid = mysql_fetch_array($getmid))
  {
  $member_id = $iamid['ID'];
  }
  $path = "../m/members_image/".$member_id."/temp/";
  $valid_formats = array("jpg", "jepg", "png", "gif", "pjpeg", "pjpg", "PJPEG", "PJPG", "JPG", "JPEG", "PNG", "GIF");
  $pid = date("Ymdhis");
  $pid = str_replace(".", "", "$pid");
  $pid = $member_id;
  /*$_SESSION['pid'] = $pid;*/
  if(isset($_POST) and $_SERVER['REQUEST_METHOD'] == "POST") {
  $name = $_FILES['photoimg']['name'];
  $size = $_FILES['photoimg']['size'];
  if(strlen($name)) {
  $extarr = explode(".", $name);
  $ext = end($extarr);
  if(in_array($ext,$valid_formats)) {
  if($size&lt;(3000000)) {
  $actual_image_name = $pid.".".$ext;
  $tmp = $_FILES['photoimg']['tmp_name'];
  if(move_uploaded_file($tmp, "$path$actual_image_name")) {
  $imgsrc = "$path$actual_image_name";
  list($width, $height) = getimagesize($imgsrc);
  $image = new SimpleImage();
  $image-&gt;load($imgsrc);
  if ( $width &gt; $height ) { $image-&gt;resizeToWidth(960); }
  else { $image-&gt;resizeToHeight(600); }
  $image-&gt;save("$imgsrc");
  list ($width1, $height1) = getimagesize($imgsrc);
  if ( $width1 &gt; 960 ) {
  $image-&gt;resizetoWidth(960);
  $image-&gt;save("$imgsrc");
  } else {}
  if ( $height1 &gt; 600 ) {
  $image-&gt;resizetoHeight(600);
  $image-&gt;save("$imgsrc");
  } else {}
  echo "&lt;img class='preview'&gt;";
  } else { echo "failed"; };
  } else { echo "Image file size max 3 MB"; }
  } else { echo "Invalid file format.."; }
  } else { echo "Please select image..!"; }
  exit;
  }
  ?&gt;
  </code></pre>
  
  <p><strong>JavaScript:</strong></p>
  
  <pre><code>&lt;script type="text/javascript" &gt;
  
  $(document).ready(function() { 
  
  $('#photoimg').live('change', function() { 
  
      $("#btn_contaier_browse").hide();
      $("#preview").html('');
      $("#preview").html("&lt;div class='splittermessages'&gt;&lt;/div&gt;&lt;br&gt;&lt;table border='0'&gt;&lt;tr&gt;&lt;td&gt;&lt;img width=60 src='/images/loading.gif'&gt;&lt;/td&gt;&lt;td&gt;Uploading image ..&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;");
  
      $("#imageform").ajaxForm({
          target: '#preview', 
          success: showCrop
  
      }).submit();
  });
  });
  function showCrop() {
  $("#btn_contaier_browse").show();
  $("#tiltusm").html('Make thumbnails.. crop your image');
  $('#currentElement').attr("src", $('#currentElement').attr("src"));
  $("#currentElement").css("display","block");
  $('#currentElement').hide();
  $('#currentElement').fadeIn(500);
  
  }
  function reloadz() {
  
  setTimeout(function(){ window.location = '/photos.html';}, 3000); 
  
  }
  &lt;/script&gt;
  </code></pre>