Function: storeCapture()
function storeCapture(opts): Promise<AttachmentRef>;
Defined in: components/capture.tsx:246
Writes the captured bytes through storage.attachments.put and returns the
AttachmentRef that goes into the submission data (docs/14 §5.2).
Without an attachment store — a host that passed only submissions, or none
at all — the ref is still produced and the blob is kept in memory for preview.
The question stays answered and the reference still syncs; only the bytes are
device-session-local, which is strictly better than refusing the capture.
Parameters
| Parameter | Type |
|---|---|
opts | StoreCaptureOptions |
Returns
Promise<AttachmentRef>