I used <input type= "file" name="Upload" >
Now I would like to restrict this by accepting only .pdf and .xls files.
When I click the submit button it should validate this.
And when I click the files (PDF/XLS) on webpage it should automatically open.
Could anyone please give some examples for this?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…