accept attribute on your file input.
1
Add an accept list
2
(Optional) Validate in JavaScript
If you want extra control, inspect
file.type or the filename before submitting and show a helpful error message.For strict enforcement, validate on your own server or upload proxy before forwarding to Formbase.