Nucleus .Net Core CMS

AllowedFileTypeExtensions Class

Namespace: Nucleus.Extensions
Assembly: Nucleus.Extensions.dll
Extension methods for Models.Configuration.AllowedFileType.


IsValid (AllowedFileType,Stream) Method

IsValid (AllowedFileType allowedFileType, Stream stream)
Return whether the bytes in the stream match one or more file signatures.
This function does not close the stream, so the caller must close the stream.

GetSample (Stream) Method

GetSample (Stream stream)
Retrieve a 64 byte sample from the start of a stream.
Name Type
stream System.IO.Stream