You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This imposes a length limit of 2MiB on the stream, after which it throws a "length limit exceeded" error.
The length limit is imposed by Multipart::from_request calling req.with_limited_body().
I tried to remove the length limit by adding .extension(axum::extract::DefaultBodyLimit::disable()) to the Request::builder(), but that doesn't work because the extension type needs to be DefaultBodyLimitKind, which is not public.
It would be great if DefaultBodyLimitKind could be public, so I can add an extension to remove the limit. Or maybe DefaultBodyLimit could implement fn add_extension(req: request::Builder) -> request::Builder?
The text was updated successfully, but these errors were encountered:
#1623 is close but different
#1409 mentions the issue, i think, but it's closed
Bug Report
Version
Platform
Darwin MacBookPro 24.0.0 Darwin Kernel Version 24.0.0: Tue Sep 24 23:39:07 PDT 2024; root:xnu-11215.1.12~1/RELEASE_ARM64_T6000 arm64
Crates
axum, axum-core
Description
I'm trying to parse a Multipart form out of a stream of Bytes. Here's the code:
This imposes a length limit of 2MiB on the stream, after which it throws a "length limit exceeded" error.
The length limit is imposed by
Multipart::from_request
callingreq.with_limited_body()
.I tried to remove the length limit by adding
.extension(axum::extract::DefaultBodyLimit::disable())
to theRequest::builder()
, but that doesn't work because the extension type needs to beDefaultBodyLimitKind
, which is not public.It would be great if
DefaultBodyLimitKind
could be public, so I can add an extension to remove the limit. Or maybeDefaultBodyLimit
could implementfn add_extension(req: request::Builder) -> request::Builder
?The text was updated successfully, but these errors were encountered: