Class FileInfo
Represents a file which the user selects for upload via RadzenUpload.
Implements
Inherited Members
Namespace: Radzen
Assembly: Radzen.Blazor.dll
Syntax
public class FileInfo : IBrowserFileConstructors
FileInfo()
Creates FileInfo.
Declaration
public FileInfo()FileInfo(IBrowserFile)
Creates FileInfo with IBrowserFile as source.
Declaration
public FileInfo(IBrowserFile source)Parameters
| Type | Name | Description | 
|---|---|---|
| IBrowserFile | source | 
Properties
ContentType
Gets the ContentType.
Declaration
public string ContentType { get; }Property Value
| Type | Description | 
|---|---|
| string | 
LastModified
Gets the LastModified.
Declaration
public DateTimeOffset LastModified { get; }Property Value
| Type | Description | 
|---|---|
| DateTimeOffset | 
Name
Gets the name of the selected file.
Declaration
public string Name { get; set; }Property Value
| Type | Description | 
|---|---|
| string | 
Size
Gets the size (in bytes) of the selected file.
Declaration
public long Size { get; set; }Property Value
| Type | Description | 
|---|---|
| long | 
Source
Gets the IBrowserFile.
Declaration
public IBrowserFile Source { get; }Property Value
| Type | Description | 
|---|---|
| IBrowserFile | 
Methods
OpenReadStream(long, CancellationToken)
Open read stream.
Declaration
public Stream OpenReadStream(long maxAllowedSize = 512000, CancellationToken cancellationToken = default)Parameters
| Type | Name | Description | 
|---|---|---|
| long | maxAllowedSize | |
| CancellationToken | cancellationToken | 
Returns
| Type | Description | 
|---|---|
| Stream |