Click or drag to resize
UploadHelperRestrictExtensions Method
Restricts allowed file extensions by file extensions defined by the CMSUploadExtensions setting (extensions not defined by this setting cannot be uploaded). Extensions are without dots and separated by semicolon (e.g. jpg;png;gif). If no file extension is allowed then "NO_ALLOWED_EXTENSION" is returned.

Namespace: CMS.ExtendedControls
Assembly: CMS.ExtendedControls (in CMS.ExtendedControls.dll) Version: 9.0.0
Syntax
C#
public static string RestrictExtensions(
	string allowedExtensions,
	string siteName
)

Parameters

allowedExtensions
Type: SystemString
File extensions to be restricted
siteName
Type: SystemString
Name of the site

Return Value

Type: String
See Also