Interface File

interface File {
    contentType: string;
    data: string | ArrayBuffer;
    name: string;
}

Properties

Properties

contentType: string

contentType 表示内容类型,默认为 application/octet-stream。

data: string | ArrayBuffer

data 表示文件内容。通常使用 open() 的返回值。

name: string

name 表示文件名,默认为纳秒级时间戳。