The FileReader object lets web applications asynchronously read
contents of files (or raw data buffers) stored on the user's
using file.File
or web.Blob
objects to specify the file or
to read.
The FileReader object lets web applications asynchronously read contents of files (or raw data buffers) stored on the user's using `file.File` or `web.Blob` objects to specify the file or to read.
(abort this)
Method.
The abort method aborts the read operation. Upon return, the will be DONE.
instanceOfFileReader.abort();
See also: https://developer.mozilla.org/en-US/docs/Web/API/FileReader/abort
Method. The abort method aborts the read operation. Upon return, the will be DONE. `instanceOfFileReader.abort();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/FileReader/abort`
Constructor.
The FileReader() constructor creates a new FileReader.
None.
See also: https://developer.mozilla.org/en-US/docs/Web/API/FileReader/FileReader
Constructor. The FileReader() constructor creates a new FileReader. None. See also: `https://developer.mozilla.org/en-US/docs/Web/API/FileReader/FileReader`
(error this)
Property.
Returns the error that occurred while reading the file.
var error = instanceOfFileReader.error
See also: https://developer.mozilla.org/en-US/docs/Web/API/FileReader/error
Property. Returns the error that occurred while reading the file. `var error = instanceOfFileReader.error` See also: `https://developer.mozilla.org/en-US/docs/Web/API/FileReader/error`
(onabort this)
Property.
The FileReader.onabort property contains an event handler executed the abort event is fired, i.e. when the process of reading the is aborted.
reader.onabort = function() { ... };
See also: https://developer.mozilla.org/en-US/docs/Web/API/FileReader/onabort
Property. The FileReader.onabort property contains an event handler executed the abort event is fired, i.e. when the process of reading the is aborted. `reader.onabort = function() { ... };` See also: `https://developer.mozilla.org/en-US/docs/Web/API/FileReader/onabort`
(onerror this)
Property.
See also: https://developer.mozilla.org/en-US/docs/Web/API/FileReader/onerror
Property. See also: `https://developer.mozilla.org/en-US/docs/Web/API/FileReader/onerror`
(onload this)
Property.
The FileReader.onload property contains an event handler executed the load event is fired, when content read with readAsArrayBuffer, readAsDataURL or readAsText is available.
See also: https://developer.mozilla.org/en-US/docs/Web/API/FileReader/onload
Property. The FileReader.onload property contains an event handler executed the load event is fired, when content read with readAsArrayBuffer, readAsDataURL or readAsText is available. See also: `https://developer.mozilla.org/en-US/docs/Web/API/FileReader/onload`
(read-as-array-buffer this blob)
Method.
The file.FileReader
interface's readAsArrayBuffer() method
used to start reading the contents of a specified web.Blob
file.File
. When the read operation is finished, the web.readyState
DONE, and the loadend is triggered. At that time, the web.result
contains an web.ArrayBuffer
representing the file's data.
instanceOfFileReader.readAsArrayBuffer(blob);
See also: https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsArrayBuffer
Method. The `file.FileReader` interface's readAsArrayBuffer() method used to start reading the contents of a specified `web.Blob` `file.File`. When the read operation is finished, the `web.readyState` DONE, and the loadend is triggered. At that time, the `web.result` contains an `web.ArrayBuffer` representing the file's data. `instanceOfFileReader.readAsArrayBuffer(blob);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsArrayBuffer`
(read-as-binary-string this blob)
Method.
The readAsBinaryString method is used to start reading the contents
the specified web.Blob
or file.File
. When the read operation
finished, the web.readyState
becomes DONE, and the loadend
triggered. At that time, the web.result
attribute contains
raw binary data from the file.
instanceOfFileReader.readAsBinaryString(blob);
See also: https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsBinaryString
Method. The readAsBinaryString method is used to start reading the contents the specified `web.Blob` or `file.File`. When the read operation finished, the `web.readyState` becomes DONE, and the loadend triggered. At that time, the `web.result` attribute contains raw binary data from the file. `instanceOfFileReader.readAsBinaryString(blob);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsBinaryString`
(read-as-data-url this blob)
Method.
The readAsDataURL method is used to read the contents of the
web.Blob
or file.File
. When the read operation is finished,
web.readyState
becomes DONE, and the loadend is triggered.
that time, the web.result
attribute contains the data as a
URL representing the file's data as a base64 encoded string.
instanceOfFileReader.readAsDataURL(blob);
See also: https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsDataURL
Method. The readAsDataURL method is used to read the contents of the `web.Blob` or `file.File`. When the read operation is finished, `web.readyState` becomes DONE, and the loadend is triggered. that time, the `web.result` attribute contains the data as a URL representing the file's data as a base64 encoded string. `instanceOfFileReader.readAsDataURL(blob);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsDataURL`
(read-as-text this & args)
Method.
The readAsText() method is used to read the contents of the specified
or file.File
. When the read operation is complete, the web.readyState
changed to DONE, the loadend event is triggered, and the web.result
contains the contents of the file as a text string.
instanceOfFileReader.readAsText(blob[, encoding]);
See also: https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsText
Method. The readAsText() method is used to read the contents of the specified or `file.File`. When the read operation is complete, the `web.readyState` changed to DONE, the loadend event is triggered, and the `web.result` contains the contents of the file as a text string. `instanceOfFileReader.readAsText(blob[, encoding]);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsText`
(ready-state this)
Property.
The file.FileReader
readyState property provides the current
of the reading operation a FileReader is in. A FileReader exists
one of the following states:
See also: https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readyState
Property. The `file.FileReader` readyState property provides the current of the reading operation a FileReader is in. A FileReader exists one of the following states: See also: `https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readyState`
(result this)
Property.
The file.FileReader
result property returns the file's contents.
property is only valid after the read operation is complete,
the format of the data depends on which of the methods was used
initiate the read operation.
var file = instanceOfFileReader.result
See also: https://developer.mozilla.org/en-US/docs/Web/API/FileReader/result
Property. The `file.FileReader` result property returns the file's contents. property is only valid after the read operation is complete, the format of the data depends on which of the methods was used initiate the read operation. `var file = instanceOfFileReader.result` See also: `https://developer.mozilla.org/en-US/docs/Web/API/FileReader/result`
(set-error! this val)
Property.
Returns the error that occurred while reading the file.
var error = instanceOfFileReader.error
See also: https://developer.mozilla.org/en-US/docs/Web/API/FileReader/error
Property. Returns the error that occurred while reading the file. `var error = instanceOfFileReader.error` See also: `https://developer.mozilla.org/en-US/docs/Web/API/FileReader/error`
(set-onabort! this val)
Property.
The FileReader.onabort property contains an event handler executed the abort event is fired, i.e. when the process of reading the is aborted.
reader.onabort = function() { ... };
See also: https://developer.mozilla.org/en-US/docs/Web/API/FileReader/onabort
Property. The FileReader.onabort property contains an event handler executed the abort event is fired, i.e. when the process of reading the is aborted. `reader.onabort = function() { ... };` See also: `https://developer.mozilla.org/en-US/docs/Web/API/FileReader/onabort`
(set-onerror! this val)
Property.
See also: https://developer.mozilla.org/en-US/docs/Web/API/FileReader/onerror
Property. See also: `https://developer.mozilla.org/en-US/docs/Web/API/FileReader/onerror`
(set-onload! this val)
Property.
The FileReader.onload property contains an event handler executed the load event is fired, when content read with readAsArrayBuffer, readAsDataURL or readAsText is available.
See also: https://developer.mozilla.org/en-US/docs/Web/API/FileReader/onload
Property. The FileReader.onload property contains an event handler executed the load event is fired, when content read with readAsArrayBuffer, readAsDataURL or readAsText is available. See also: `https://developer.mozilla.org/en-US/docs/Web/API/FileReader/onload`
(set-ready-state! this val)
Property.
The file.FileReader
readyState property provides the current
of the reading operation a FileReader is in. A FileReader exists
one of the following states:
See also: https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readyState
Property. The `file.FileReader` readyState property provides the current of the reading operation a FileReader is in. A FileReader exists one of the following states: See also: `https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readyState`
(set-result! this val)
Property.
The file.FileReader
result property returns the file's contents.
property is only valid after the read operation is complete,
the format of the data depends on which of the methods was used
initiate the read operation.
var file = instanceOfFileReader.result
See also: https://developer.mozilla.org/en-US/docs/Web/API/FileReader/result
Property. The `file.FileReader` result property returns the file's contents. property is only valid after the read operation is complete, the format of the data depends on which of the methods was used initiate the read operation. `var file = instanceOfFileReader.result` See also: `https://developer.mozilla.org/en-US/docs/Web/API/FileReader/result`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close