Today we added a simple yet effective option to enforce file type validation for attachment columns. It’s quite useful for scenarios where column is expected to store certain file type (or class of types).

For example, you may have the column intended to store the photo, thus you may want to restrict user’s selection to JPEG or PNG files only. Or column to store signed user agreements accepting PDF documents only.

New option accepts the comma-separated list of file extensions that are valid for selection.

File type validation options

As long as Valid File Types list is specified, the browser restricts the selection to listed file types.

File selection dialog with restricted set of file types

As some operating systems and browsers provide the way to override initial type selection, we perform an additional validation after the file is selected. In Validation Message property you can specify the text to display to the user when invalid file is selected. If not provided, we end up with generic message.

Have a nice day!