pub fn parse_multipart<S>(
body: &[u8],
boundary: &str,
file_options: &HashMap<String, FileOptions, S>,
max_body: u64,
) -> Result<MultipartData, FormError>where
S: BuildHasher,Expand description
Parses a multipart/form-data body.
file_options maps field names to FileOptions used for size, MIME, and storage.
Unknown file parts use FileOptions::default.
ยงErrors
Returns FormError::Multipart when the body exceeds max_body, the boundary is
missing/invalid, or a part cannot be decoded. Returns FormError::Upload when a
declared file field violates size or MIME constraints.