Models.Configuration.AllowedFileType Class
Namespace: Nucleus.Abstractions.Models.Configuration
Assembly: Nucleus.Abstractions.dll
Represents the configurable options for a file type signature.
Example
"AllowedFileTypes": {
"JPEG": { "FileExtensions": [".jpg", ".jpeg"], "Signatures": [ "FFD8FFE0", "FFD8FFE2", "FFD8FFE3" ] }
}
Properties
FileExtensions
Property
List of allowed file extensions for the allowed file type.
Signatures
Property
A list of signatures for the file type. Signatures are used to validate that the file contents match the file type (extension).
Restricted
Property
Specifies whether uploads of the file type are restricted to site administrators.