An object that can handle multiple file uploads.

Use Uploader class to create an instance of this interface.

interface IUploader {
    addFile(file): Promise<URI>;
    addURI(name, value): Promise<URI>;
    finalize(): Promise<void>;
    initialize(): Promise<void>;
}

Implemented by

Methods

  • Takes a name of the resource its current URI and returns the public URI.

    The URI could be a local file path or a remote URL.

    The resource could be copied immediately or stored in a queue to be uploaded later.

    Parameters

    • name: string
    • value: string

    Returns Promise<URI>