GIScene.LocalFileLoader Class
The local file loader will load files from the local file system
Constructor
GIScene.LocalFileLoader
(
-
fileInputElement -
readAs -
onSuccess -
onProgress -
onError
Parameters:
-
fileInputElementHTMLInputElementan input element of type="file" used to choose the file to load
-
readAsStringdefines the nature of the result. Can be "text", "dataURL", "binaryString" or "arrayBuffer"
-
onSuccessFunctionwill have an argument containing the fileReader.result, which depends on the readAs property
-
onProgressFunctionwill have an argument containing the ProgressEvent
-
onErrorFucntionwill have an argument containing the DOMError object of fileReader.error
