
I want to upload a .xlsx file to my systems with condition that the file name contains a specified string.
For example: I want to upload file whose name contains "Paper", so the file browser should not display files which don't contain "Paper" in their name.
For the example in the photo that I attached in this post, the file 'Order#...' should not be displayed.
How can i do it? Is it possible to implement this idea? thanks.
You can use accept attribute
Try this code
<input type="file" accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" />
Read more here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With