html - How to make a file field that only accept pdf and doc -


i need accept pdf , doc file using input type file.

<input type="file" id="test" name="test" accept="application/msword,text/plain, application/pdf"/> 

this working in windows, in ubunthu, accept pdf file

change code this:

<input type="file" id="test" name="test" accept=".pdf,.doc"/> 

the extensions should start dot "." , separated comma ","


Comments

Popular posts from this blog

searchKeyword not working in AngularJS filter -

sequelize.js - Sequelize: sort by enum cases -

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -