Click or drag to resize
FileHelperCheckExtension Method
Checks if the extension is within the given list of allowed extensions.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 11.0.0
Syntax
C#
public static bool CheckExtension(
	string extension,
	string allowedExtensions
)

Parameters

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

Return Value

Type: Boolean
See Also