import { MultiformatReplica } from "https://deno.land/x/earthstar@v10.0.1/mod.browser.ts";
Ingest an attachment for a given document.
Type Parameters
optional
F = DefaultFormatParameters
doc: FormatDocType<F>
attachment: Uint8Array | ReadableStream<Uint8Array>
Returns
Promise<true | false | ValidationError>
true
(indicating it was upsert), false
(indicating this attachment is already in storage), or a ValidationError
(indicating something went wrong.)