diff --git a/Cargo.toml b/Cargo.toml index b5409179..95141c1d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -39,7 +39,7 @@ serde_json = "1.0.64" thiserror = "1.0.24" static_assertions = "1.1.0" http = "0.2.3" -multer = "1.2.2" +multer = "2.0.0" tempfile = "3.2.0" # Feature optional dependencies diff --git a/src/http/multipart.rs b/src/http/multipart.rs index 67f3b1b3..ded7d8de 100644 --- a/src/http/multipart.rs +++ b/src/http/multipart.rs @@ -43,7 +43,7 @@ pub(super) async fn receive_batch_multipart( boundary: impl Into, opts: MultipartOptions, ) -> Result { - let mut multipart = Multipart::new_with_constraints( + let mut multipart = Multipart::with_constraints( ReaderStream::new(body), boundary, Constraints::new().size_limit({