mirror of
https://github.com/tokio-rs/axum.git
synced 2025-01-11 12:31:25 +01:00
docs: add note about large file multipart uploads (#2025)
Co-authored-by: David Pedersen <david.pdrsn@gmail.com>
This commit is contained in:
parent
68696b09b1
commit
8016e7890c
1 changed files with 7 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue