Umi — API References - v1.3.0
    Preparing search index...

    Interface UploaderInterface

    Defines the interface for an uploader. It allows us to upload files and get their URIs.

    interface UploaderInterface {
        getUploadPrice: (
            files: GenericFile[],
            options?: UploaderGetUploadPriceOptions,
        ) => Promise<Amount>;
        upload: (
            files: GenericFile[],
            options?: UploaderUploadOptions,
        ) => Promise<string[]>;
        uploadJson: <T>(
            json: T,
            options?: UploaderUploadOptions,
        ) => Promise<string>;
    }
    Index

    Properties

    getUploadPrice: (
        files: GenericFile[],
        options?: UploaderGetUploadPriceOptions,
    ) => Promise<Amount>

    Gets the price to upload a list of files.

    upload: (
        files: GenericFile[],
        options?: UploaderUploadOptions,
    ) => Promise<string[]>

    Uploads multiple files and returns their URIs.

    uploadJson: <T>(json: T, options?: UploaderUploadOptions) => Promise<string>

    Uploads a JSON object and returns its URI.