Click or drag to resize
WebDAVHelperIsExtensionAllowedForBrowseMode Method (String, FormFieldInfo, String, Boolean)
Checks if file extension is allowed for browse mode.

Namespace: CMS.WebDAV
Assembly: CMS.WebDAV (in CMS.WebDAV.dll) Version: 11.0.0
Syntax
C#
public static bool IsExtensionAllowedForBrowseMode(
	string extension,
	FormFieldInfo formFieldInfo,
	string siteName,
	bool mediaFile = false
)

Parameters

extension
Type: SystemString
File extension
formFieldInfo
Type: CMS.FormEngineFormFieldInfo
Form field info
siteName
Type: SystemString
Site name
mediaFile (Optional)
Type: SystemBoolean
Indicate whether you are checking for media-file or not (Parameter is optional to keep backward compatibility in API)

Return Value

Type: Boolean
See Also