Click or drag to resize
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.MediaLibrary
Assembly: CMS.MediaLibrary (in CMS.MediaLibrary.dll) Version: 8.2.23
Syntax
C#
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: Boolean
See Also