title: Restrict file upload type to only Image
body: <p>I am using a HTML form to upload image files. Now i am using server side validation to allow the file types. But i want to validate it in client side as well. I have seen in some websites which greys out other file types when we are choosing the file. I think that is a cool option. When i was walking through google i found this </p>
  
  <pre><code>&lt;input id="my_file_element" type="file" name="file_0" accept="image/*"&gt;
  </code></pre>
  
  <p>But with this i am getting "All Files" option so tat i can enable other files as well. I don't need that. No matter what happens the user should be allowed to select only images files from their computer. Do you guys know a way to do this ?</p>
  
  <p>This is what i meant by greying out.
  <img src="https://i.stack.imgur.com/XkFJZ.png" alt="enter image description here"></p>