Click or drag to resize
FormEngineUserControlIsFileTypeAllowed Method

Note: This API is now obsolete.

Checks if specified file type is allowed to be uploaded.

Namespace: CMS.FormControls
Assembly: CMS.FormControls (in CMS.FormControls.dll) Version: 8.2.23
Syntax
C#
[ObsoleteAttribute("Use UploadHelper.IsExtensionAllowed() instead.")]
protected static bool IsFileTypeAllowed(
	string type,
	string allowedTypes
)

Parameters

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

Return Value

Type: Boolean
See Also