Answers for "accept certain inputs file html"

1

html input type file accept text and word files

<input type="file" name="uploaded_file" accept=".txt, text/plain, .doc, .docx, application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document"/>
Posted by: Guest on May-29-2021
0

specifying file types in html file input

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

Browse Popular Code Answers by Language