Results 21 - 40 of 68

FileReader.abort()

The abort method aborts the read operation. Upon return, the readyState will be DONE.
API File API Files Method Reference Référence

FileReader.error

Returns the error that occurred while reading the file.
API File API Files Property Reference

FileReader.onload

The FileReader.onload property contains a event handler executed when the load event is fired, when content read with readAsArrayBuffer, readAsBinaryString, readAsDataURL or readAsText is available.
Event Handler File FileReader Property Reference

FileReader.readAsBinaryString()

The readAsBinaryString method is used to start reading the contents of the specified Blob or File. When the read operation is finished, the readyState becomes DONE, and the loadend is triggered. At that time, the result attribute contains the raw binary data from the file.
API File API Files Method Reference

FileReader.readAsDataURL()

The readAsDataURL method is used to read the contents of the specified Blob or File. When the read operation is finished, the readyState becomes DONE, and the loadend is triggered. At that time, the result attribute contains  the data as a URL representing the file's data as a base64 encoded string.
API File API Files Method Reference

FileReader.readAsText()

The readAsText method is used to read the contents of the specified Blob or File. When the read operation is complete, the readyState is changed to DONE, the loadend is triggered, and the result attribute contains the contents of the file as a text string.
API File API Files Method Reference Référence

FileReader.readyState

Provides the current state of the reading operation.
API File API Files Property Reference Référence

FileReader.result

Returns the file's contents. This property is only valid after the read operation is complete, and the format of the data depends on which of the methods was used to initiate the read operation.
API File API Files Property Reference Référence

Using FormData Objects

The FormData object lets you compile a set of key/value pairs to send using XMLHttpRequest. It is primarily intended for use in sending form data, but can be used independently from forms in order to transmit keyed data. The transmitted data is in the same format that the form's submit() method would use to send the data if the form's encoding type were set to multipart/form-data.
AJAX Blob File FormData Forms XHR XMLHttpRequest

Blob()

The Blob() constructor returns a new Blob object. The content of the blob consists of the concatenation of the values given in the parameter array.
API Blob Constructor Experimental Expérimental File API Reference Référence

File.lastModifiedDate

The File.lastModifiedDate read-only property returns the last modified date of the file. Files without a known last modified date returns the current date .
API Deprecated File API Files Property Read-only Reference

FileReader.readAsArrayBuffer()

The FileReader interface's readAsArrayBuffer() method is used to start reading the contents of a specified Blob or File. When the read operation is finished, the readyState becomes DONE, and the loadend is triggered. At that time, the result attribute contains an ArrayBuffer representing the file's data.
API DOM File API FileReader Files Method readAsArrayBuffer Reference