Expand description
multipart/form-data parsing — UploadedFile and the file bag.
Deliberately a buffered parser: it takes the complete body and splits it
on the boundary, rather than streaming parts as they arrive. That matches
the rest of the request model (see crate::body) and keeps
$request->file('avatar') a synchronous call. The protection against a
malicious 10 GB upload is therefore the server’s body-size limit, applied
before this ever runs — not backpressure inside it.
Structs§
- Multipart
- The outcome of parsing a
multipart/form-databody: ordinary fields lifted into a JSON tree, plus the files. - Uploaded
File - A file received in a
multipart/form-datarequest.
Functions§
- boundary_
of - Pull the
boundary=parameter out of aContent-Typeheader. - parse
- Parse a
multipart/form-databody given its boundary.