title: File upload validation by JavaScript
body: <p>I want to restrict a file upload control to allow PDF files only. I want to use JavaScript for that.</p>
  
  <p>I want to apply that JavaScript in file upload event.</p>