• Core
  • Infrastructure
  • Web
  • Extensions
Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IFileStreamSecurityAnalyzer

    Namespace: Umbraco.Cms.Core.Security
    Assembly: Umbraco.Core.dll
    Syntax
    public interface IFileStreamSecurityAnalyzer

    Methods

    View Source

    IsConsideredSafe(Stream)

    Analyzes whether the file content is considered safe

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

    Needs to be a Read/Write seekable stream

    Returns
    Type Description
    System.Boolean

    Whether the file is considered safe

    View Source

    ShouldHandle(Stream)

    Indicates whether the analyzer should process the file The implementation should be considerably faster than IsConsideredSafe

    Declaration
    bool ShouldHandle(Stream fileStream)
    Parameters
    Type Name Description
    Stream fileStream
    Returns
    Type Description
    System.Boolean
    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • IsConsideredSafe(Stream)
      • ShouldHandle(Stream)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX