Retrieves a file from a URL and returns the file as a blob.
For example:
const fileBlob = await getFile("https://pod.example.com/some/file", { fetch: fetch }); Copy
const fileBlob = await getFile("https://pod.example.com/some/file", { fetch: fetch });
For additional examples, see Read/Write Files.
The URL of the file to return
Optional
Fetching options: a custom fetcher and/or headers.
The file as a blob.
Retrieves a file from a URL and returns the file as a blob.
For example:
For additional examples, see Read/Write Files.