Meziantou.Framework.WebPlatform.Dom.FileApi namespace

Classes

NameDescription
BlobAn immutable sequence of bytes with a type (https://w3c.github.io/FileAPI/#blob-section). The parts of the constructor are strings (encoded as UTF-8), blobs, byte arrays and ReadOnlyMemory<T> of bytes. A blob can be referenced by a blob: URL (Url.CreateObjectUrl). stream() and textStream() are defined by the WebIDL bindings, with the streams implemented in JavaScript (docs/scripting.md#streams).
BlobPropertyBaghttps://w3c.github.io/FileAPI/#dfn-BlobPropertyBag
Filehttps://w3c.github.io/FileAPI/#file-section
FileListhttps://w3c.github.io/FileAPI/#filelist-section
FilePropertyBaghttps://w3c.github.io/FileAPI/#dfn-FilePropertyBag
FileReaderReads the content of a Blob asynchronously (https://w3c.github.io/FileAPI/#APIASynch). The events (loadstart, progress, load or error, loadend, abort) are fired by the tasks of the event loop of the relevant global object of the reader (the window of the current global object when it is created); a reader created without current global object (e.g. from .NET without script engine) reads the blob and fires the events synchronously.
FileReaderSyncReads the content of a blob synchronously (https://w3c.github.io/FileAPI/#FileReaderSync), in the dedicated and shared workers.
FileSystemThe file system of the files and the directories of a drag data store (https://wicg.github.io/entries-api/#api-domfilesystem): its root directory contains the files of the store (the dropped files and directories, or the files that a script added to a DataTransfer). It is read-only.
FileSystemDirectoryEntryA directory of a FileSystem (https://wicg.github.io/entries-api/#api-directoryentry).
FileSystemDirectoryReaderReads the entries of a directory (https://wicg.github.io/entries-api/#api-directoryreader): the first call of FileSystemDirectoryReader.ReadEntries gets all the entries, the next ones get an empty list (the end of the directory).
FileSystemEntryA file or a directory of a FileSystem (https://wicg.github.io/entries-api/#api-entry).
FileSystemFileEntryA file of a FileSystem (https://wicg.github.io/entries-api/#api-fileentry).
FileSystemFlagsThe options of FileSystemDirectoryEntry.GetFile and FileSystemDirectoryEntry.GetDirectory (https://wicg.github.io/entries-api/#dictdef-filesystemflags).

Structs

NameDescription
FileReaderResultThe result of a FileReader: a string or a byte array (an ArrayBuffer in JavaScript).

Delegates

NameDescription
ErrorCallbackhttps://wicg.github.io/entries-api/#callbackdef-errorcallback
FileCallbackhttps://wicg.github.io/entries-api/#callbackdef-filecallback
FileSystemEntriesCallbackhttps://wicg.github.io/entries-api/#callbackdef-filesystementriescallback
FileSystemEntryCallbackhttps://wicg.github.io/entries-api/#callbackdef-filesystementrycallback