how to filter file extension when user select file to upload to a case

how to filter file extension when user select file to upload to a case?

I had found a page as below

However what’s expected is to add filter when user select file instead of post validation after upload, pls refer to below, as-is filter only ., expect add more e.g. *.pdf, *.txt

@MaxonL16591286 did you already go through this article?

How to restrict File Attachments by file type [SDR-94]

@RameshSangili is this something you might be able to help with?

@MaxonL16591286

If you add the Attachment Control, you can force users to attach only selected extension files. However, OOTB is enforced only after the attachment selection is completed. Please find the attached screenshots for your reference(Constellation).

Thanks,

Ramesh