how to make an upload button in html which only accepts .pdf code example
Example: how to ensure only pdf files are selected
<input type="file" name="upload" accept="application/pdf,application/vnd.ms-excel" />
<input type="file" name="upload" accept="application/pdf,application/vnd.ms-excel" />