Package org.w3c.files

Platform and version requirements: JS

Kotlin JavaScript wrappers for the W3C file API.

Types

Blob

open external class Blob

Exposes the JavaScript Blob to Kotlin

BlobPropertyBag

external interface BlobPropertyBag

File

open external class File : Blob

Exposes the JavaScript File to Kotlin

FileList

abstract external class FileList : ItemArrayLike<File>

Exposes the JavaScript FileList to Kotlin

FilePropertyBag

external interface FilePropertyBag : BlobPropertyBag

FileReader

open external class FileReader : EventTarget

Exposes the JavaScript FileReader to Kotlin

FileReaderSync

open external class FileReaderSync

Exposes the JavaScript FileReaderSync to Kotlin

Functions

BlobPropertyBag

fun BlobPropertyBag(type: String? = ""): BlobPropertyBag

FilePropertyBag

fun FilePropertyBag(
    lastModified: Int? = null,
    type: String? = ""
): FilePropertyBag

get

operator fun FileList.get(index: Int): File?