Skip to main content

Module attachments

Module attachments 

Expand description

File attachment processing for the RPC transport.

Structs§

AttachmentSource
A path-mode attachment source, resolved once by the dispatcher and carried intact into the bounded read.

Constants§

MAX_FILE_BYTES
Per-file size limit (decoded bytes).
MAX_REQUEST_BYTES
Per-request total size limit (decoded bytes).

Functions§

load_file_entry
Resolve one file entry to its bytes and display filename, without persisting anything: decode data_b64, or read path through the authorized source.
persist_into_index
Hash, deduplicate, persist, and index one uploaded payload into a session’s upload index.
persist_upload_bytes
Hash, deduplicate, persist, and index one uploaded payload for the live session session_id, under the session map lock (see persist_into_index). A session that is not live is refused before anything is written, rather than reported as a successful upload with no index entry.
process_file_entry