Table of Contents

Struct UploadCheckResult

Namespace
HeroKit.FileTypes
Assembly
HeroKit.FileTypes.dll
public readonly record struct UploadCheckResult : IEquatable<UploadCheckResult>
Implements
Inherited Members
Extension Methods

Constructors

UploadCheckResult(UploadRejection, FileType?, string?)

public UploadCheckResult(UploadRejection Rejection, FileType? DetectedType, string? Message)

Parameters

Rejection UploadRejection

Why the upload was rejected, or None.

DetectedType FileType

The type detected from the content, or null.

Message string

A message in English that explains the rejection, or null when the upload is safe.

Properties

DetectedType

The type detected from the content, or null.

public FileType? DetectedType { get; init; }

Property Value

FileType

IsSafe

Gets whether the upload passed every check.

public bool IsSafe { get; }

Property Value

bool

Message

A message in English that explains the rejection, or null when the upload is safe.

public string? Message { get; init; }

Property Value

string

Rejection

Why the upload was rejected, or None.

public UploadRejection Rejection { get; init; }

Property Value

UploadRejection