Liking cljdoc? Tell your friends :D

file.FileReader

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.
raw docstring

abortcljs

(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`
sourceraw docstring

constructorcljs

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`
sourceraw docstring

errorcljs

(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`
sourceraw docstring

onabortcljs

(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`
sourceraw docstring

onerrorcljs

(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`
sourceraw docstring

onloadcljs

(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`
sourceraw docstring

read-as-array-buffercljs

(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`
sourceraw docstring

read-as-binary-stringcljs

(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`
sourceraw docstring

read-as-data-urlcljs

(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`
sourceraw docstring

read-as-textcljs

(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`
sourceraw docstring

ready-statecljs

(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`
sourceraw docstring

resultcljs

(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`
sourceraw docstring

set-error!cljs

(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`
sourceraw docstring

set-onabort!cljs

(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`
sourceraw docstring

set-onerror!cljs

(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`
sourceraw docstring

set-onload!cljs

(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`
sourceraw docstring

set-ready-state!cljs

(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`
sourceraw docstring

set-result!cljs

(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`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close