MediaLibraryHelperIsExtensionAllowed Method |
Determines whether the file with the specified extension (case insensitive) can be uploaded into library module on site specified by name.
Namespace: CMS.MediaLibraryAssembly: CMS.MediaLibrary (in CMS.MediaLibrary.dll) Version: 12.0.0
Syntax public static bool IsExtensionAllowed(
string extension,
string siteName = ""
)
Parameters
- extension
- Type: SystemString
File extension to check - siteName (Optional)
- Type: SystemString
File extension to check
Return Value
Type:
BooleanSee Also