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 SourceValidate(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. |
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. |