Skip to main content
added 103 characters in body
Source Link
Anshuman Jaiswal
  • 5.5k
  • 1
  • 31
  • 46

Try following:

<input type="file" accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" /> 

In modern browser you can also use file extensions directly like:

accept=".pdf, .xls, .xlsx" 

Try following:

<input type="file" accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" /> 

Try following:

<input type="file" accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" /> 

In modern browser you can also use file extensions directly like:

accept=".pdf, .xls, .xlsx" 
Source Link
Anshuman Jaiswal
  • 5.5k
  • 1
  • 31
  • 46

Try following:

<input type="file" accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" />