Represents a file which the user selects for upload via RadzenUpload.
Forms.IBrowserFile
Namespace: Radzen
Assembly: Radzen.Blazor.dll
public class FileInfo : Forms.IBrowserFileGets the ContentType.
public string ContentType { get; set; }
| Type | Description |
|---|---|
| string | Gets the ContentType. |
Gets the LastModified.
public DateTimeOffset LastModified { get; set; }
| Type | Description |
|---|---|
| DateTimeOffset | Gets the LastModified. |
Gets the name of the selected file.
public string Name { get; set; }
| Type | Description |
|---|---|
| string | Gets the name of the selected file. |
Gets the size (in bytes) of the selected file.
public long Size { get; set; }
| Type | Description |
|---|---|
| long | Gets the size (in bytes) of the selected file. |
Gets the IBrowserFile source.
public Forms.IBrowserFile Source { get; }
| Type | Description |
|---|---|
| Forms.IBrowserFile | Gets the IBrowserFile source. |
Open read stream.
public IO.Stream OpenReadStream(long maxAllowedSize, Threading.CancellationToken cancellationToken)
| Type | Name | Description |
|---|---|---|
| long | maxAllowedSize | The maximum allowed size. |
| Threading.CancellationToken | cancellationToken | The cancellation token. |
| Type | Description |
|---|---|
| IO.Stream | The stream. |