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

    Function getFileWithAcl

    • 
      

      Retrieves a file, its resource ACL (Access Control List) if available, and its fallback ACL from a URL and returns them as a blob.

      If the user calling the function does not have access to the file's resource ACL, [[hasAccessibleAcl]] on the returned blob returns false. If the user has access to the file's resource ACL but the resource ACL does not exist, [[getResourceAcl]] on the returned blob returns null. If the fallback ACL is inaccessible by the user, [[getFallbackAcl]] on the returned blob returns null.

      To retrieve the ACLs, the function results in multiple HTTP requests rather than a single
      request as mandated by the Solid spec. As such, prefer [[getFile]] instead if you do not need the ACL.
      

      Parameters

      • input: string | Url
      • Optionaloptions: { fetch?: (input: URL | RequestInfo, init?: RequestInit) => Promise<Response> }

        Fetching options: a custom fetcher and/or headers.

        • Optionalfetch?: (input: URL | RequestInfo, init?: RequestInit) => Promise<Response>

      Returns Promise<Blob & WithResourceInfo & {} & WithAcl>

      A file and its ACLs, if available to the authenticated user, as a blob.

      0.2.0