input type file accept only excel code example
Example 1: jquery accept only excel file
<input type="file" ID="fileSelect" accept=".xlsx, .xls, .csv"/>
Example 2: input type file csv only
<input type="file" id="img" name="img" accept=".csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel">