HTML Input=”file” Accept Attribute File Type (CSV)
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) … Read more