Indicates if the file extension is permitted by the Host Whitelist

Namespace: DotNetNuke.Common.Utilities
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
public bool IsAllowedExtension(
	string extension
)
Visual Basic
Public Function IsAllowedExtension ( 
	extension As String
) As Boolean

Parameters

extension
Type: System..::..String
The file extension with or without preceding '.'

Return Value

True if extension is in whitelist or whitelist is empty. False otherwise.

See Also