custom inpur file control accept only pdf xlsx and png code example
Example: input type file allow only pdf
<input type="file" id="test" name="test" accept=".pdf,.doc"/>
<input type="file" id="test" name="test" accept=".pdf,.doc"/>