Skip to main content
Latest
method Earthstar.MultiformatReplica.prototype.ingestAttachment
Re-export
import { Earthstar } from "https://deno.land/x/earthstar_replica_server@4.0.0-beta.1/deps.ts";
const { MultiformatReplica } = Earthstar;

Parameters

format: FormatArg<F>
attachment: Uint8Array | ReadableStream<Uint8Array>
sourceId: "local" | string

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.)