FileHelper CheckExtension Method Kentico 8.0 API Reference
Checks if the extension is within the given list of allowed extensions.

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

Parameters

extension
Type: OnlineSystem String
Extension to check
allowedExtensions
Type: OnlineSystem String
List of allowed extensions separated by semicolon, e.g. "jpg;png"

Return Value

Type: OnlineBoolean
See Also