Enum UploadRejection
- Namespace
- HeroKit.FileTypes
- Assembly
- HeroKit.FileTypes.dll
Why an upload was rejected.
public enum UploadRejection
- Extension Methods
Fields
ActiveContent = 10The 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 = 11DangerousContent = 6The content is a program or script, whatever the extension says.
DangerousExtension = 2The extension belongs to a program or script, for example ".exe", ".js" or ".php", or is in BlockedExtensions.
DoubleExtension = 3A program or script extension is hidden before the last extension, for example "invoice.php.jpg".
EmptyContent = 5The content is empty.
ExtensionMismatch = 8The content does not fit the extension.
InvalidFileName = 1The 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 = 0The upload passed every check.
NotAllowed = 9The type is not in AllowedTypes.
TooLarge = 12The file is longer than MaxLength.
UnknownContent = 7The content type could not be detected and AllowUnknownContent is false.
UnknownExtension = 4The extension is missing or unknown.