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
HTMLInputElementan input element of type="file" used to choose the file to load
-
readAs
Stringdefines the nature of the result. Can be "text", "dataURL", "binaryString" or "arrayBuffer"
-
onSuccess
Functionwill have an argument containing the fileReader.result, which depends on the readAs property
-
onProgress
Functionwill have an argument containing the ProgressEvent
-
onError
Fucntionwill have an argument containing the DOMError object of fileReader.error