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

Class FileSecurityController

Internal class to check file security.

Inheritance
System.Object
ServiceLocator<IFileSecurityController, FileSecurityController>
FileSecurityController
Implements
IFileSecurityController
Inherited Members
ServiceLocator<IFileSecurityController, FileSecurityController>.Instance
ServiceLocator<IFileSecurityController, FileSecurityController>.Factory
ServiceLocator<IFileSecurityController, FileSecurityController>.SetTestableInstance(IFileSecurityController)
ServiceLocator<IFileSecurityController, FileSecurityController>.ClearInstance()
ServiceLocator<IFileSecurityController, FileSecurityController>.GetFactory()
Namespace: DotNetNuke.Services.FileSystem.Internal
Assembly: DotNetNuke.dll
Syntax
public class FileSecurityController : ServiceLocator<IFileSecurityController, FileSecurityController>, IFileSecurityController

Methods

| Improve this Doc View Source

GetFactory()

Gets the service locator factory.

Declaration
protected override Func<IFileSecurityController> GetFactory()
Returns
Type Description
Func<IFileSecurityController>

A factory function.

Overrides
DotNetNuke.Framework.ServiceLocator<DotNetNuke.Services.FileSystem.Internal.IFileSecurityController, DotNetNuke.Services.FileSystem.Internal.FileSecurityController>.GetFactory()
| Improve this Doc View Source

Validate(String, Stream)

Checks if the file has valid content.

Declaration
public 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
public 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.

Implements

IFileSecurityController

Extension Methods

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