title: Accept attribute in file input for IE8
body: <p>I'm building an internal web app which allows the user to upload a file via the file input element as follows:</p>
  
  <pre><code>&lt;input class="WebFormControls" type="file" accept=".csv" id="fileBulkCsv" name="fileBulkCsv" onchange="javascript:OnFileUploadChange();" /&gt;
  </code></pre>
  
  <p><strong>The Problem</strong></p>
  
  <p>My problem is that the client's SOE uses IE8 (boo hiss, yes I know). Unfortunately, this version of IE doesn't support the <em>accept</em> attribute of the input element in conjunction with type="file" (works fine in Chrome).</p>
  
  <p><strong>The Question</strong></p>
  
  <p>My question is: is there another way to reproduce this behaviour? My goal is to have the browser open a file dialog which is preset to filter in only CSV files.</p>
  
  <p>I've tried using both file extension pattern (".csv") and MIME type ("text/csv") arguments, but it does not work and I suspect that IE8 simply does not handle the accept attribute.</p>
  
  <p><strong>Out of Scope</strong></p>
  
  <p>Please note that I'm quite comfortable with the concept of using JavaScript to validate the file name and its extension. However, this happens after the fact, once the user has already selected a file to upload. I'm looking for a way (if possible) to replicate the accept behaviour on Microsoft's browser.</p>
  
  <p>Thanks!</p>