mirror of
https://github.com/radzenhq/radzen-blazor.git
synced 2026-02-04 05:35:44 +00:00
31 lines
742 B
C#
31 lines
742 B
C#
using Microsoft.AspNetCore.Components.Forms;
|
|
|
|
namespace Radzen;
|
|
|
|
/// <summary>
|
|
/// Represents the preview which <see cref="Radzen.Blazor.RadzenUpload" /> displays for selected files.
|
|
/// </summary>
|
|
public class PreviewFileInfo : FileInfo
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of PreviewFileInfo from a browser file.
|
|
/// </summary>
|
|
/// <param name="files">The browser file.</param>
|
|
public PreviewFileInfo(IBrowserFile files) : base(files)
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// Initializes a new, empty instance of PreviewFileInfo.
|
|
/// </summary>
|
|
public PreviewFileInfo()
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets the URL of the previewed file.
|
|
/// </summary>
|
|
public string? Url { get; set; }
|
|
}
|
|
|