Skip to content

Commit

Permalink
docs: add note about large file multipart uploads (#2025)
Browse files Browse the repository at this point in the history
Co-authored-by: David Pedersen <david.pdrsn@gmail.com>
  • Loading branch information
wowkster and davidpdrsn committed Jun 22, 2023
1 parent 68696b0 commit 8016e78
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions axum/src/extract/multipart.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@ use std::{
/// let app = Router::new().route("/upload", post(upload));
/// # let _: Router = app;
/// ```
///
/// # Large Files
///
/// For security reasons, by default, `Multipart` limits the request body size to 2MB.
/// See [`DefaultBodyLimit`][default-body-limit] for how to configure this limit.
///
/// [default-body-limit]: crate::extract::DefaultBodyLimit
#[cfg_attr(docsrs, doc(cfg(feature = "multipart")))]
#[derive(Debug)]
pub struct Multipart {
Expand Down

0 comments on commit 8016e78

Please sign in to comment.