OCUpload plugin behaving strangely in IE8

OCUpload plugin behaving strangely in IE8

I'm using the OCUpload jquery plugin (version 1.1.2) on my site to upload images. It has worked great up until now. I upgraded to IE8 recently and now the upload doesn't trigger (Uploading file... not displayed) the first time you browse to a file, but works perfectly the second time, every time.

I would ask the author, but none of the links for his plugin work any more.

Here's the code

Javascript


//image upload
   $('#imagefl').upload({
      name: 'file',
      method: 'post',
      enctype: 'multipart/form-data',
      action: 'upload.php',
      onSubmit: function() {
         $('#progress1').text('Uploading file...');
      },
      onComplete: function(data) {
         //data contains the response from the action url
         var image = $('div.image');
         $(image).after('<div class=image id=imagedisp><img src="imagetmp/'+data+'"><br><a id=hideimg href="#">Hide image</a><input id= newimage name=newimage type=hidden value="'+data+'"></div>');
         $('#progress1').text('');
         $(image).remove();
      }
   });



HTML


<input type="hidden" name="MAX_FILE_SIZE" value="524288">            
            <input name='imagefl' id='imagefl' size='22.5' class='fle' type='file'>
            <span id="progress1"> Please ensure your image names don't contain any special characters like %</span>