FileUploadControl.setFileTypes

Sets a comma separated string of permitted file and MIME types. The file chooser displays only files of this type by default, but files of any type can be selected. Client-side validation will ensure that only files with a permitted extension can be uploaded.

Further documentation.

Parameters

java.lang.String  fileTypes,