UploadHelperIsExtensionAllowed Method |
Checks if specified file extension is allowed to be uploaded.
Namespace: CMS.Base.Web.UIAssembly: CMS.Base.Web.UI (in CMS.Base.Web.UI.dll) Version: 13.0.131
Syntax public static bool IsExtensionAllowed(
string extension,
string allowedExtensions
)
Parameters
- extension
- Type: SystemString
File extension, e.g. 'jpg' or '.jpg' - allowedExtensions
- Type: SystemString
Allowed file extensions
Return Value
Type:
BooleanSee Also