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.Base.Web.UIAssembly: CMS.Base.Web.UI (in CMS.Base.Web.UI.dll) Version: 12.0.0
Syntaxpublic 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