Skip to main content

max_bytes

Function max_bytes 

Source
pub fn max_bytes(rules: &[String]) -> Option<u64>
Expand description

The largest file the configured rules allow, in bytes, when they declare max:<kilobytes>.

The rules are the framework’s rule strings; this endpoint reads the size rule out of them, because the typed form’s own rules are compile-time and these are configuration.