title: Why I am getting error while verifying file type?
body: <p>I am want to capture the files which have type <code>image or video</code>. But according to my condition I can't understand why it is throwing error even for the correct file type. Below is my code:</p>
  
  <p><strong>app.component.ts</strong></p>
  
  <pre><code>startUpload(event: FileList)
    {
      const file = event.item(0);
      if((file.type.split('/')[0] !== 'video') || (file.type.split('/')[0] !== 'image'))
      {
        alert(file.type.split('/')[0]);
        return;
      }
    }
  </code></pre>
  
  <p>While uploading video/image files it's showing video/image respectively in the alert box.
  Please suggest me where I need to change.</p>