I want an input type="file" to accept only pdf and excel
I did this <input type="file" name="upload" accept="application/pdf,application/vnd.ms-excel" />
And it accepts .pdf and .xls files, but not .xlsx, how can I make it accept xlsx files as well?
accept=".pdf, .xls"?xlsx? A quick google search suggestedapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheet