File

@native @JSGlobal @JSType
class File(parts: Array[Any], val name: String, options: FilePropertyBag) extends File
Companion:
object
class File
class Blob
class Object
trait Any
class Object
trait Matchable
class Any

Value members

Inherited methods

def `type`: String

A string indicating the MIME type of the data contained in the Blob. If the type is unknown, this string is empty.

A string indicating the MIME type of the data contained in the Blob. If the type is unknown, this string is empty.

Inherited from:
Blob
def arrayBuffer(): Promise[ArrayBuffer]

Returns a promise that resolves with an ArrayBuffer containing the entire contents of the blob as binary data.

Returns a promise that resolves with an ArrayBuffer containing the entire contents of the blob as binary data.

Inherited from:
Blob
def hasOwnProperty(v: String): Boolean
Inherited from:
Object
def isPrototypeOf(v: Object): Boolean
Inherited from:
Object
def propertyIsEnumerable(v: String): Boolean
Inherited from:
Object
def size: Double

The size, in bytes, of the data contained in the Blob object.

The size, in bytes, of the data contained in the Blob object.

Inherited from:
Blob
def slice(start: Double, end: Double, contentType: String): Blob

A string indicating the MIME type of the data contained in the Blob. If the type is unknown, this string is empty.

A string indicating the MIME type of the data contained in the Blob. If the type is unknown, this string is empty.

Inherited from:
Blob
def stream(): ReadableStream[Uint8Array]

Returns a ReadableStream that can be used to read the contents of the blob.

Returns a ReadableStream that can be used to read the contents of the blob.

Inherited from:
Blob
def text(): Promise[String]

Returns a promise that resolves with a USVString containing the entire contents of the blob interpreted as UTF-8 text.

Returns a promise that resolves with a USVString containing the entire contents of the blob interpreted as UTF-8 text.

See also:
Inherited from:
Blob
def toLocaleString(): String
Inherited from:
Object
def valueOf(): Any
Inherited from:
Object

Deprecated and Inherited methods

@deprecated("This method seems to have been added in error and not actually exist.", "1.2.0")
def close(): Unit
Deprecated
Inherited from:
Blob

Concrete fields

val lastModified: Int
override val name: String