Table of Contents

Class UploadFile

Namespace
BootstrapBlazor.Components
Assembly
BootstrapBlazor.dll

上传组件返回类

public class UploadFile
Inheritance
UploadFile
Inherited Members
Extension Methods

Constructors

UploadFile()

public UploadFile()

Properties

Code

获得/设置 文件上传结果 0 表示成功 非零表示失败

public int Code { get; set; }

Property Value

int

Error

获得/设置 错误信息

public string? Error { get; set; }

Property Value

string

File

获得/设置 上传文件实例

public IBrowserFile? File { get; set; }

Property Value

IBrowserFile

FileName

获得/设置 文件名

public string? FileName { get; set; }

Property Value

string

OriginFileName

获得/设置 原始文件名(上传时 IBrowserFile.Name 实例赋值)

public string? OriginFileName { get; }

Property Value

string

PrevUrl

获得/设置 文件预览地址

public string? PrevUrl { get; set; }

Property Value

string

Size

获得/设置 文件大小

public long Size { get; set; }

Property Value

long

Methods

GetExtension()

获得 UploadFile 文件扩展名

public string? GetExtension()

Returns

string

GetFileName()

获得 UploadFile 文件名

public string? GetFileName()

Returns

string