Results 1 - 20 of 32

FileList

An object of this type is returned by the files property of the HTML <input> element; this lets you access the list of files selected with the <input type="file"> element. It's also used for a list of files dropped into web content when using the drag and drop API; see the DataTransfer object for details on this usage.
API File API Files

File

The File interface provides information about files and allows JavaScript in a web page to access their content.
API File API Interface Reference Web

File.name

Returns the name of the file represented by a File object. For security reasons, the path is excluded from this property.
API File API Files Property Reference Référence

FileError

Represents an error that occurs while using the FileReader interface.
API File API Files Obsolete Reference

FileReader

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

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

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