Liking cljdoc? Tell your friends :D

web.files.FileReader

The FileReader object lets web applications asynchronously read contents of files (or raw data buffers) stored on the user's using web.files.File or web.files.Blob objects to specify file or data to read.

The FileReader object lets web applications asynchronously read
contents of files (or raw data buffers) stored on the user's
using `web.files.File` or `web.files.Blob` objects to specify
file or data 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 & args)

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.

[Read Only]

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.

[Read Only]

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

onloadendcljs

(onloadend this)

Property.

A handler for the loadend event. This event is triggered each the reading operation is completed (either in success or failure).

Property.

A handler for the loadend event. This event is triggered each
the reading operation is completed (either in success or failure).
sourceraw docstring

onloadstartcljs

(onloadstart this)

Property.

A handler for the loadstart event. This event is triggered each the reading is starting.

Property.

A handler for the loadstart event. This event is triggered each
the reading is starting.
sourceraw docstring

onprogresscljs

(onprogress this)

Property.

A handler for the progress event. This event is triggered while a Blob content.

Property.

A handler for the progress event. This event is triggered while
a Blob content.
sourceraw docstring

read-as-array-buffercljs

(read-as-array-buffer this blob)

Method.

The web.files.FileReader interface's readAsArrayBuffer() method used to start reading the contents of a specified web.files.Blob web.files.File. When the read operation is finished, the readyState DONE, and the loadend is triggered. At that time, the result contains an js.ArrayBuffer representing the file's data.

instanceOfFileReader.readAsArrayBuffer(blob);

See also: https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsArrayBuffer

Method.

The `web.files.FileReader` interface's readAsArrayBuffer() method
used to start reading the contents of a specified `web.files.Blob`
`web.files.File`. When the read operation is finished, the `readyState`
DONE, and the loadend is triggered. At that time, the `result`
contains an `js.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.files.Blob or web.files.File. When the operation is finished, the readyState becomes DONE, and the is triggered. At that time, the result attribute contains the 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.files.Blob` or `web.files.File`. When the
operation is finished, the `readyState` becomes DONE, and the
is triggered. At that time, the `result` attribute contains the
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.files.Blob or web.files.File. When the read operation finished, the readyState becomes DONE, and the loadend is triggered. that time, the result attribute contains the data as a data: 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.files.Blob` or `web.files.File`. When the read operation
finished, the `readyState` becomes DONE, and the loadend is triggered.
that time, the `result` attribute contains the data as a data:
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 web.files.File. When the read operation is complete, the is changed to DONE, the loadend event is triggered, and the 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 `web.files.File`. When the read operation is complete, the
is changed to DONE, the loadend event is triggered, and the `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.

[Read Only]

The web.files.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.

[Read Only]

The `web.files.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.

[Read Only]

The web.files.FileReader result property returns the file's This 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.

[Read Only]

The `web.files.FileReader` result property returns the file's
This 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-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-onloadend!cljs

(set-onloadend! this val)

Property.

A handler for the loadend event. This event is triggered each the reading operation is completed (either in success or failure).

Property.

A handler for the loadend event. This event is triggered each
the reading operation is completed (either in success or failure).
sourceraw docstring

set-onloadstart!cljs

(set-onloadstart! this val)

Property.

A handler for the loadstart event. This event is triggered each the reading is starting.

Property.

A handler for the loadstart event. This event is triggered each
the reading is starting.
sourceraw docstring

set-onprogress!cljs

(set-onprogress! this val)

Property.

A handler for the progress event. This event is triggered while a Blob content.

Property.

A handler for the progress event. This event is triggered while
a Blob content.
sourceraw docstring

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

× close