@inrupt/solid-client-access-grants
    Preparing search index...

    Function saveFileInContainer

    • Saves a file in the given container URL using an Access Grant to prove the caller is authorized to save a file in the given container.

      Type Parameters

      • T extends Blob | File | File

      Parameters

      • containerUrl: string

        The container URL where the file is to be saved.

      • file: T

        The file to be written.

      • accessGrant: VerifiableCredential | DatasetWithId

        The Access Grant VC proving the caller is authorized.

      • Optionaloptions: Partial<SaveFileOptions>

        Optional properties to customise the request behaviour, or override the Content-Type of the file.

      Returns Promise<T & WithResourceInfo>

      A promise that resolves to a File if successful, and that rejects otherwise.