pub const MAX_INGEST_FILE_BYTES: usize = 1_048_576;Expand description
Maximum accepted size of a single file read through a path-referenced
context fragment (V2b-1 path ingestion) — 1 MiB, the same ceiling as
MAX_FRAGMENT_BYTES: an ingested file becomes an ordinary fragment’s
content, so it must not exceed what a fragment is allowed to carry.
Checked from fs::metadata BEFORE the file is read, and re-checked after
(fs::read can race a concurrent write) — never clamped, always refused,
so a truncated read can never silently masquerade as the whole file.