UploadHelperIsExtensionAllowed Method |
Checks if specified file extension is allowed to be uploaded.
Namespace: CMS.ExtendedControlsAssembly: CMS.ExtendedControls (in CMS.ExtendedControls.dll) Version: 9.0.0
Syntaxpublic static bool IsExtensionAllowed(
string extension,
string allowedExtensions
)
Parameters
- extension
- Type: SystemString
File extension, e.g. 'jpg' or '.jpg' - allowedExtensions
- Type: SystemString
Allowed file extensions
Return Value
Type:
Boolean
See Also