file_a_p_i library Null safety
- The object represents a blob, which is a file-like object of immutable, raw data; they can be read as text or binary data, or converted into a ReadableStream so its methods can be used for processing the data. [...]
An object of this type is returned by the
filesproperty 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. Note: Prior to Gecko 1.9.2, the input element only supported a single file being selected at a time, meaning that the FileList would contain only one file. Starting with Gecko 1.9.2, if the input element's multiple attribute is true, the FileList may contain multiple files.
- The 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. [...]
- The interface allows to read File or Blob objects synchronously. Note: This feature is available in Web Workers [...]