title: Validating file extension in AngularJs before uploading
body: <p>I am uploading images for our application to the server. 
  Is there any way to validate the extensions in client side by JS before submitting them to the server before uploading them to server?</p>
  
  <p>I am using AngularJs to handle my front-end.</p>