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
53.1MB test file should be accepted as an upload by the example with a 100MB limit, like the 8MB test file was and like it was when using the FromRequest example code from actix_multipart::Multipart with a suitably high global limit.
Current Behavior
If testing using curl, Payload error is returned.
When logging is plumbed in, DEBUG Error in response: Payload(Overflow) is the result.
Also using MultipartFormConfig to attempt to raise the limit, as "Note: the form is also subject to the global limits configured using MultipartFormConfig." seems to indicate to be necessary, has no effect.
Possible Solution
Make it work as described.
Steps to Reproduce (for bugs)
cargo new actix-test && cd actix-test && cargo add actix-web actix-multipart && cargo add serde --features derive
Copy the example code into a new project's src/main.rs
Expected Behavior
53.1MB test file should be accepted as an upload by the example with a 100MB limit, like the 8MB test file was and like it was when using the
FromRequest
example code from actix_multipart::Multipart with a suitably high global limit.Current Behavior
If testing using curl,
Payload error
is returned.When logging is plumbed in,
DEBUG Error in response: Payload(Overflow)
is the result.Also using
MultipartFormConfig
to attempt to raise the limit, as "Note: the form is also subject to the global limits configured usingMultipartFormConfig
." seems to indicate to be necessary, has no effect.Possible Solution
Make it work as described.
Steps to Reproduce (for bugs)
cargo new actix-test && cd actix-test && cargo add actix-web actix-multipart && cargo add serde --features derive
src/main.rs
cargo run
curl -v --request POST --url http://localhost:8080/videos -F 'json={"name": "Cargo.lock"};type=application/json' -F file=@./some_file_over_50_megs
Context
If this isn't fixed, I have to NIH the exact same functionality on top of actix_multipart::Multipart to achieve my goals.
Your Environment
rustc -V
): rustc 1.83.0 (90b35a623 2024-11-26)The text was updated successfully, but these errors were encountered: