File

external class File(fileBits: ReadonlyArray<BlobPart>, fileName: String, options: FilePropertyBag = definedExternally) : Blob(source)

Provides information about files and allows JavaScript in a web page to access their content.

MDN Reference

Constructors

Link copied to clipboard
constructor(fileBits: ReadonlyArray<BlobPart>, fileName: String, options: FilePropertyBag = definedExternally)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun slice(start: JsLong = definedExternally, end: JsLong = definedExternally, contentType: String = definedExternally): Blob
Link copied to clipboard
Link copied to clipboard
suspend fun text(): String
Link copied to clipboard