File

open external class File(fileBits: Array<dynamic>, fileName: String, options: FilePropertyBag = definedExternally) : Blob(source)

Exposes the JavaScript File to Kotlin

Since Kotlin

1.1

Constructors

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

Properties

Link copied to clipboard
open val isClosed: Boolean
Since Kotlin 1.1
Link copied to clipboard
open val lastModified: Int
Since Kotlin 1.1
Link copied to clipboard
open val name: String
Since Kotlin 1.1
Link copied to clipboard
open val size: Number
Since Kotlin 1.1
Link copied to clipboard
open val type: String
Since Kotlin 1.1

Functions

Link copied to clipboard
fun close()
Since Kotlin 1.1
Link copied to clipboard
fun slice(start: Int = definedExternally, end: Int = definedExternally, contentType: String = definedExternally): Blob
Since Kotlin 1.1