title: Internet Exploder submitting a null file from hidden iframe
body: <p>I have a page with a jqGrid. On that grid I've added a custom button to the pager that, when clicked, opens a file browser for the user to upload an excel file. The file input is wrapped in a form and targeted to a hidden iframe. </p>
  
  <p>I know that in Internet explorer, you cannot submit a file using javascript. I'm trying to figure out a way to submit the iframe and actually get the file to pass to the server with a value. </p>
  
  <p>In chrome I'm able to submit it by triggering a click on a submit button I have way off the page on file input change and get the file, but in Internet Exploder it comes back null.</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;form action="/ManagedCatalog/ImportContractsFromExcelFile" method="post" enctype="multipart/form-data" target="upload_target" onsubmit=""&gt;
      &lt;input type="file" id="uploadedFile" name="uploadedFile" accept=".csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel" /&gt;
      &lt;input type="submit" id="submitBtn" name="submitBtn" value="Upload" style="position: absolute; z-index: 19999; top: -1000px; left: -1000px;"/&gt;
  &lt;/form&gt;
  &lt;iframe id="upload_target" name="upload_target" src="#" style="width: 0; height: 0; border: 0px solid #fff;"&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>The custom nav button fires this:</p>
  
  <pre><code>    function ImportContractsFromExcelFile() {
          $('#uploadedFile').trigger('click');
      }
  </code></pre>
  
  <p>And what I've got to work in Chrome:</p>
  
  <pre><code>    $('#uploadedFile').change(function () {
          $('#submitBtn').trigger('click');
      });
  </code></pre>
  
  <p>Any tips, tricks, advice, reviews, or beatings are fully encouraged.
  plz help.</p>
  
  <p>Edit:</p>
  
  <p>I'm doing it this way, because the silverlight app my team and I are rewriting acts this way and the client would like to keep this behavior. I may go down a jquery dialog window route and give the user a button to click, but I'd like to try and keep it as similar as possible.</p>