FormEngineUserControlIsFileTypeAllowed Method |
Note: This API is now obsolete.
Checks if specified file type is allowed to be uploaded.
Namespace: CMS.FormControlsAssembly: CMS.FormControls (in CMS.FormControls.dll) Version: 8.2.23
Syntax [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:
BooleanSee Also