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
LastModified
Gets the LastModified.
public DateTimeOffset LastModified { get; }
Property Value
Name
Gets the name of the selected file.
public string Name { get; set; }
Property Value
Size
Gets the size (in bytes) of the selected file.
public long Size { get; set; }
Property Value
Source
Gets the IBrowserFile.
public IBrowserFile Source { get; }
Property Value
Methods
OpenReadStream(long, CancellationToken)
Open read stream.
public Stream OpenReadStream(long maxAllowedSize = 512000, CancellationToken cancellationToken = default)
Parameters
maxAllowedSize
longcancellationToken
CancellationToken