Table of Contents

Class FileInfo

Namespace
Radzen
Assembly
Radzen.Blazor.dll

Represents a file which the user selects for upload via RadzenUpload.

public class FileInfo : IBrowserFile
Inheritance
FileInfo
Implements
Derived
Inherited Members

Constructors

FileInfo()

Creates FileInfo.

public FileInfo()

FileInfo(IBrowserFile)

Creates FileInfo with IBrowserFile as source.

public FileInfo(IBrowserFile source)

Parameters

source IBrowserFile

Properties

ContentType

Gets the ContentType.

public string ContentType { get; }

Property Value

string

LastModified

Gets the LastModified.

public DateTimeOffset LastModified { get; }

Property Value

DateTimeOffset

Name

Gets the name of the selected file.

public string Name { get; set; }

Property Value

string

Size

Gets the size (in bytes) of the selected file.

public long Size { get; set; }

Property Value

long

Source

Gets the IBrowserFile.

public IBrowserFile Source { get; }

Property Value

IBrowserFile

Methods

OpenReadStream(long, CancellationToken)

Open read stream.

public Stream OpenReadStream(long maxAllowedSize = 512000, CancellationToken cancellationToken = default)

Parameters

maxAllowedSize long
cancellationToken CancellationToken

Returns

Stream