title: How to remove one specific selected file from input file control
body: <p>How to remove one specific selected file from input file control?</p>
  
  <p>I have an input file control with the option to select multiple files; however, I want to validate a file and if it has an wrong extension then I should remove that file from the file control itself, is it possible?</p>
  
  <p>I tried as below</p>
  
  <pre><code>&lt;input type="file" name="fileToUpload" id="fileToUpload" multiple/&gt;
  
  
  &lt;script&gt; $("#fileToUpload")[0].files[0] &lt;/script&gt;
  </code></pre>
  
  <p>Below is the screenshot of the object but I am not able to modify it</p>
  
  <p><img src="https://i.stack.imgur.com/sIxC6.png" alt="enter image description here"></p>