• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Interface IFileSecurityController

Internal class to check file security.

Namespace: DotNetNuke.Services.FileSystem.Internal
Assembly: DotNetNuke.dll
Syntax
public interface IFileSecurityController

Methods

| Improve this Doc View Source

Validate(String, Stream)

Checks if the file has valid content.

Declaration
bool Validate(string fileName, Stream fileContent)
Parameters
Type Name Description
System.String fileName

The File Name.

Stream fileContent

The File Content.

Returns
Type Description
System.Boolean

true if the file has valid content, otherwise false.

| Improve this Doc View Source

ValidateNotExectuable(Stream)

Checks the file content isn't an exectuable file.

Declaration
bool ValidateNotExectuable(Stream fileContent)
Parameters
Type Name Description
Stream fileContent

The File Content.

Returns
Type Description
System.Boolean

Whether the file is an exectuable file.

Extension Methods

JsonExtensionsWeb.ToJson(Object)
  • View Source
Back to top by the community, for the community... #DNNCMS