title: How to restrict file types with HTML input file type?
body: <p>How do I restrict file types with the HTML input file type?</p>
  
  <p>I have this</p>
  
  <pre><code>&lt;input type="file" id="fileUpload" name="fileUpload" size="23" accept="Calendar/ics"/&gt;
  </code></pre>
  
  <p>I am trying to restrict the type to only the iCalendar format type.</p>
  
  <p>I also want to check it on the server side. How do I do this in <a href="http://en.wikipedia.org/wiki/ASP.NET_MVC_Framework" rel="noreferrer">ASP.NET MVC</a>?</p>