title: How to avoid input type file to add multiple files?
body: <p>I want to take only one file as input whenever i choose a file i want to take new one but my current code taking more than one file.</p>
  
  <pre><code> &lt;input id="input-file" type="file" name="file" (change)="onFileSelected($event)" accept="application/pdf;image/jpeg;image/gif;image/tif;image/tiff;image/jpg;image/png;application/vnd.openxmlformats-officedocument.presentationml.presentation" /&gt;
  </code></pre>
  
  <p>typescript code:</p>
  
  <pre><code> onFileSelected(event){
      let file = event.target.value;
  
  }
  </code></pre>