diff --git a/crates/core/src/http/request.rs b/crates/core/src/http/request.rs index f2519803b..663c8b1dd 100644 --- a/crates/core/src/http/request.rs +++ b/crates/core/src/http/request.rs @@ -829,7 +829,7 @@ impl Request { pub async fn try_all_files(&mut self) -> ParseResult> { self.form_data() .await - .map(|ps| ps.files.iter().map(|(_, f)| f).collect()) + .map(|ps| ps.files.flat_iter().map(|(_, f)| f).collect()) } /// Get request payload with default max size limit(64KB).