Click or drag to resize
UploadedFileExtensions Class
Provides methods to read content from IUploadedFile input stream.
Inheritance Hierarchy
SystemObject
  CMS.Base.InternalUploadedFileExtensions

Namespace: CMS.Base.Internal
Assembly: CMS.Base (in CMS.Base.dll) Version: 13.0.131
Syntax
C#
public static class UploadedFileExtensions

The UploadedFileExtensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberGetBytes

Gets the content of uploaded file as byte array with array length equal to Length.

When the CanOpenReadStream is then the input stream will be accessed via OpenReadStream method and then disposed.

When the CanOpenReadStream is then the input stream will be accessed via InputStream method, attempted to seek to the beginning and then read.

Top
See Also