FormEngineUserControl IsFileTypeAllowed Method Kentico 8.0 API Reference
Checks if specified file type is allowed to be uploaded.

Namespace: CMS.FormControls
Assembly: CMS.FormControls (in CMS.FormControls.dll) Version: 8.0.0.0 (8.0.5239.26125)

Parameters

type
Type: OnlineSystem String
File type, e.g. 'jpg' or '.jpg'
allowedTypes
Type: OnlineSystem String
Allowed file types from form field info definition

Return Value

Type: OnlineBoolean
See Also