Demos About Radzen
Search Results for

    Show / Hide Table of Contents

    Class FileInfo

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

    Inheritance
    System.Object
    FileInfo
    PreviewFileInfo
    Namespace: Radzen
    Assembly: Radzen.Blazor.dll
    Syntax
    public class FileInfo : IBrowserFile

    Constructors

    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
    System.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
    System.String

    Size

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

    Declaration
    public long Size { get; set; }
    Property Value
    Type Description
    System.Int64

    Source

    Gets the IBrowserFile.

    Declaration
    public IBrowserFile Source { get; }
    Property Value
    Type Description
    IBrowserFile

    Methods

    OpenReadStream(Int64, CancellationToken)

    Open read stream.

    Declaration
    public IO.Stream OpenReadStream(long maxAllowedSize = null, CancellationToken cancellationToken = null)
    Parameters
    Type Name Description
    System.Int64 maxAllowedSize
    CancellationToken cancellationToken
    Returns
    Type Description
    System.IO.Stream

    Introducing Radzen Blazor Studio

    Radzen Blazor Studio is a software development environment that empowers developers to design, build and deploy Blazor applications without the traditional hurdles. Write less code and get more done.

    Learn More

    Download Now
    Download Now
    In This Article
    Back to top Radzen Blazor Components, © 2018-2025 Radzen. Source Code licensed under MIT