Limiting file types in Forminator file upload field

How can I restrict the file type that users can upload using the file upload field? There should be some way to restrict file types. Otherwise the form can be misused to upload malicious content also.