Module attachments
Expand description
File attachment processing for the RPC transport.
Structs§
- Attachment
Source - 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 readpaththrough 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 (seepersist_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