jquery accept only excel file
snippet in javascript

jquery accept only excel file

user2703

<input type="file" ID="fileSelect" accept=".xlsx, .xls, .csv"/>

html input file type csv

user6833

<input id="fileSelect" type="file" accept=".csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel" />  

input type file csv only

user2189

<input type="file" id="img" name="img" accept=".csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel">