FileHelperCheckExtension Method |
Checks if the extension is within the given list of allowed extensions.
Namespace: CMS.HelpersAssembly: CMS.Helpers (in CMS.Helpers.dll) Version: 10.0.0
Syntax 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:
BooleanSee Also