Restrict type of file uploaded

Restrict type of file uploaded

Is it possible to restrict the file types in the file upload field?