API Docs for: 1.0.2
Show:

GIScene.LocalFileLoader Class

The local file loader will load files from the local file system

Constructor

GIScene.LocalFileLoader

(
  • fileInputElement
  • readAs
  • onSuccess
  • onProgress
  • onError
)

Parameters:

  • fileInputElement HTMLInputElement

    an input element of type="file" used to choose the file to load

  • readAs String

    defines the nature of the result. Can be "text", "dataURL", "binaryString" or "arrayBuffer"

  • onSuccess Function

    will have an argument containing the fileReader.result, which depends on the readAs property

  • onProgress Function

    will have an argument containing the ProgressEvent

  • onError Fucntion

    will have an argument containing the DOMError object of fileReader.error

Item Index