Answers for "input file accept excel"

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">
Posted by: Guest on August-19-2020
0

html input file type csv

<input id="fileSelect" type="file" accept=".csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel" />
Posted by: Guest on May-14-2020
-1

html file input accept excel file

accept=".xlsx,.xls,.csv"
Posted by: Guest on August-20-2021
-2

input accept excel html

Add accept attribute to the input :
accept=".csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel"

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

Other input types :

CSV files (.csv): accept=".csv"

Excel Files 97-2003 (.xls): accept="application/vnd.ms-excel"

Excel Files 2007+ (.xlsx): accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" 

Text Files (.txt): accept="text/plain"

Image Files (.png/.jpg/etc): accept="image/*"

HTML Files (.htm,.html): accept="text/html"

Video Files (.avi, .mpg, .mpeg, .mp4): accept="video/*"

Audio Files (.mp3, .wav, etc): accept="audio/*"

PDF Files: accept=".pdf"
Posted by: Guest on April-14-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language