jquery accept only excel file
<input type="file" ID="fileSelect" accept=".xlsx, .xls, .csv"/>
jquery accept only excel file
<input type="file" ID="fileSelect" accept=".xlsx, .xls, .csv"/>
html input file type csv
<input id="fileSelect" type="file" accept=".csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel" />
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"
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us