Class FileSecurityController
Internal class to check file security.
Inheritance
System.Object
FileSecurityController
Implements
Inherited Members
Namespace: DotNetNuke.Services.FileSystem.Internal
Assembly: DotNetNuke.dll
Syntax
public class FileSecurityController : ServiceLocator<IFileSecurityController, FileSecurityController>, IFileSecurityController
Methods
| Improve this Doc View SourceGetFactory()
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. |
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. |