Table of Contents

Enum UploadRejection

Namespace
HeroKit.FileTypes
Assembly
HeroKit.FileTypes.dll

Why an upload was rejected.

public enum UploadRejection
Extension Methods

Fields

ActiveContent = 10

The SVG contains script, event handlers, embedded HTML, entity declarations or external references, or is too large to scan; or the document carries macros (a macro-enabled type, or a legacy DOC or XLS file with a VBA project) and AllowMacros is false.

CustomRule = 11

A rule from Rules rejected the upload; see Message.

DangerousContent = 6

The content is a program or script, whatever the extension says.

DangerousExtension = 2

The extension belongs to a program or script, for example ".exe", ".js" or ".php", or is in BlockedExtensions.

DoubleExtension = 3

A program or script extension is hidden before the last extension, for example "invoice.php.jpg".

EmptyContent = 5

The content is empty.

ExtensionMismatch = 8

The content does not fit the extension.

InvalidFileName = 1

The file name is empty, too long, starts or ends with a dot or space, or contains a path separator, a colon, a control character or another character Windows does not allow.

None = 0

The upload passed every check.

NotAllowed = 9

The type is not in AllowedTypes.

TooLarge = 12

The file is longer than MaxLength.

UnknownContent = 7

The content type could not be detected and AllowUnknownContent is false.

UnknownExtension = 4

The extension is missing or unknown.