FileHelper CheckExtension Method Kentico 8.1 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.1.5347.20411)

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