Using only HTML Unable .
This is because the file search window in the input file
tag is from the Operating System. The accept
attribute communicates the Operating System to the initially supported file types or types, helping the user find the accepted files, but nothing prevents the "All Files" option from being selected.
Only programs running directly on the operating system and allowed to scan files on the computer can do this type of limitation as you can see in the image below:
If your application was able to communicate with someone else being
executed on the Operating System this would be possible.