input type accept pdf code example Example: <input name="userfile" type="file" accept="application/pdf, application/vnd.ms-excel" />