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: 13.0.131
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