File

Overview

The File interface provides information about files and allows JavaScript in a web page to access their content.

Location

 

arrayBuffer

Transforms the File into a stream and reads it to completion. It returns a promise that resolves with an ArrayBuffer.

 

method arrayBuffer: dynamic

 

dynamic arrayBuffer()

 

func arrayBuffer() -> dynamic

 

dynamic arrayBuffer()

 

Function arrayBuffer() As dynamic

lastModified

 

property lastModified: DateTime read;

 

DateTime lastModified { get; }

 

var lastModified: DateTime { get{} }

 

DateTime lastModified { __get; }

 

ReadOnly Property lastModified() As DateTime

name

 

property name: String read;

 

String name { get; }

 

var name: String { get{} }

 

String name { __get; }

 

ReadOnly Property name() As String

size

 

property size: Double read;

 

Double size { get; }

 

var size: Double { get{} }

 

Double size { __get; }

 

ReadOnly Property size() As Double

slice

Returns a new Blob object containing the data in the specified range of bytes of the source Blob.

 

method slice(parstart: dynamic; parend: dynamic; parcontentType: dynamic): dynamic

 

dynamic slice(dynamic parstart, dynamic parend, dynamic parcontentType)

 

func slice(_ parstart: dynamic, _ parend: dynamic, _ parcontentType: dynamic) -> dynamic

 

dynamic slice(dynamic parstart, dynamic parend, dynamic parcontentType)

 

Function slice(parstart As dynamic, parend As dynamic, parcontentType As dynamic) As dynamic

Parameters:

  • parstart:
  • parend:
  • parcontentType:

stream

Transforms the File into a ReadableStream that can be used to read the File contents.

 

method stream: dynamic

 

dynamic stream()

 

func stream() -> dynamic

 

dynamic stream()

 

Function stream() As dynamic

text

Transforms the File into a stream and reads it to completion. It returns a promise that resolves with a USVString (text).

 

method text: dynamic

 

dynamic text()

 

func text() -> dynamic

 

dynamic text()

 

Function text() As dynamic

type

 

property type: dynamic read;

 

dynamic type { get; }

 

var type: dynamic { get{} }

 

dynamic type { __get; }

 

ReadOnly Property type() As dynamic

 

lastModified

 

property lastModified: DateTime read;

 

DateTime lastModified { get; }

 

var lastModified: DateTime { get{} }

 

DateTime lastModified { __get; }

 

ReadOnly Property lastModified() As DateTime

name

 

property name: String read;

 

String name { get; }

 

var name: String { get{} }

 

String name { __get; }

 

ReadOnly Property name() As String

size

 

property size: Double read;

 

Double size { get; }

 

var size: Double { get{} }

 

Double size { __get; }

 

ReadOnly Property size() As Double

type

 

property type: dynamic read;

 

dynamic type { get; }

 

var type: dynamic { get{} }

 

dynamic type { __get; }

 

ReadOnly Property type() As dynamic

 

arrayBuffer

Transforms the File into a stream and reads it to completion. It returns a promise that resolves with an ArrayBuffer.

 

method arrayBuffer: dynamic

 

dynamic arrayBuffer()

 

func arrayBuffer() -> dynamic

 

dynamic arrayBuffer()

 

Function arrayBuffer() As dynamic

slice

Returns a new Blob object containing the data in the specified range of bytes of the source Blob.

 

method slice(parstart: dynamic; parend: dynamic; parcontentType: dynamic): dynamic

 

dynamic slice(dynamic parstart, dynamic parend, dynamic parcontentType)

 

func slice(_ parstart: dynamic, _ parend: dynamic, _ parcontentType: dynamic) -> dynamic

 

dynamic slice(dynamic parstart, dynamic parend, dynamic parcontentType)

 

Function slice(parstart As dynamic, parend As dynamic, parcontentType As dynamic) As dynamic

Parameters:

  • parstart:
  • parend:
  • parcontentType:

stream

Transforms the File into a ReadableStream that can be used to read the File contents.

 

method stream: dynamic

 

dynamic stream()

 

func stream() -> dynamic

 

dynamic stream()

 

Function stream() As dynamic

text

Transforms the File into a stream and reads it to completion. It returns a promise that resolves with a USVString (text).

 

method text: dynamic

 

dynamic text()

 

func text() -> dynamic

 

dynamic text()

 

Function text() As dynamic