WebDAVHelperIsExtensionAllowedForBrowseMode Method (String, FormFieldInfo, String, Boolean) |
Checks if file extension is allowed for browse mode.
Namespace: CMS.WebDAVAssembly: CMS.WebDAV (in CMS.WebDAV.dll) Version: 8.2.23
Syntax 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:
BooleanSee Also