From ae072d18128c79ff8d3634dcd51569e39e73f71e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Wo=C5=BAniak?= Date: Mon, 31 Jul 2023 15:24:23 +0200 Subject: [PATCH] Trim input name --- src/model.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/model.rs b/src/model.rs index d784604..3ebfd08 100644 --- a/src/model.rs +++ b/src/model.rs @@ -101,6 +101,8 @@ impl ActixAdminModel { while let Some(item) = payload.next().await { let mut field = item?; + eprintln!("FIELD NAME {:?}, FILENAME {:?}", field.name(), field.content_disposition().get_filename()); + let mut binary_data: Vec = Vec::new(); while let Some(chunk) = field.next().await { binary_data.push(chunk.unwrap());