@dxos/echo
    Preparing search index...

    Function fromUpload

    • Adopts bytes already staged by a direct upload, returning an un-added Blob object. The caller is responsible for adding it to the database.

      The counterpart to fromBytes for content this process never holds: an agent uploaded the file straight to the store over a signed URL, because passing it through a tool call would mean a model emitting it byte by byte. Size and type are reported by the store, which is the only party that saw what arrived.

      Parameters

      • uploadId: string
      • Optionaloptions: { storage?: Blob.Storage | string & {} }

      Returns Effect<Blob.Blob, BlobNotAvailableError | BlobWriteError, Database.Service>

      const blob = yield* Blob.fromUpload(uploadId);
      yield* Database.add(blob);

      Async; one backend round trip, and the bytes never pass through this process.