How to allow only certain file types to be uploaded?

How to allow only certain file types to be uploaded?

Under the field Properties of the File Upload / Image Upload field, give the file types that you wish to allow in  File Size.

Allowed File Formats