Class BrowserFileIO

A browser-specific implementation of the FileIO interface.

This class supports loading files over HTTP(s) using fetch, but does not support saving files due to browser limitations.

Implements

Constructors

Methods

Constructors

Methods

  • Loads a file from the given URL and returns it as a CrossPlatformBlob.

    Parameters

    • url: string

      The URL of the file to load.

    Returns Promise<CrossPlatformBlob>

    A promise that resolves to a CrossPlatformBlob containing the file data.

    An error if the fetch request fails or returns a non-OK status.