Search Results for

    Show / Hide Table of Contents
    View Source

    Class FileStreamSecurityValidator

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Core.Security
    Assembly: Umbraco.Core.dll
    Syntax
    public class FileStreamSecurityValidator : IFileStreamSecurityValidator

    Constructors

    View Source

    FileStreamSecurityValidator(IEnumerable<IFileStreamSecurityAnalyzer>)

    Declaration
    public FileStreamSecurityValidator(IEnumerable<IFileStreamSecurityAnalyzer> fileAnalyzers)
    Parameters
    Type Name Description
    IEnumerable<IFileStreamSecurityAnalyzer> fileAnalyzers

    Methods

    View Source

    IsConsideredSafe(Stream)

    Analyzes whether the file content is considered safe with registered IFileStreamSecurityAnalyzers

    Declaration
    public bool IsConsideredSafe(Stream fileStream)
    Parameters
    Type Name Description
    Stream fileStream

    Needs to be a Read seekable stream

    Returns
    Type Description
    System.Boolean

    Whether the file is considered safe after running the necessary analyzers

    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • FileStreamSecurityValidator(IEnumerable<IFileStreamSecurityAnalyzer>)
    • Methods
      • IsConsideredSafe(Stream)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX