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

    Function overwriteFile

    • Overwrites the file using an Access Grant to prove the caller is authorized to write to the given resource URL.

      yet exist, unlike its `@inrupt/solid-client` counterpart. To save a new file
      in a container, you should use [saveFileInContainer](#savefileincontainer)
      instead.
      

      Type Parameters

      • T extends Blob | File | File

      Parameters

      • resourceUrl: string

        The URL where the file is located.

      • file: T

        The file to be written.

      • accessGrant: VerifiableCredential | DatasetWithId

        The Access Grant VC proving the caller is authorized.

      • Optionaloptions: Partial<WriteFileOptions>

        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.