I have a file upload object on my page:
<input type="file" ID="fileSelect" />
with the following excel files on my desktop:
- file1.xlsx
- file1.xls
- file.csv
I want the file upload to ONLY show .xlsx, .xls, & .csv files.
Using the accept attribute, I found these content-types took care of .xlsx & .xls extensions...
accept= application/vnd.openxmlformats-officedocument.spreadsheetml.sheet (.XLSX)
accept= application/vnd.ms-excel (.XLS)
However, I cannot find the correct content-type for an Excel CSV file! Any suggestions?
EXAMPLE: http://jsfiddle.net/LzLcZ/