Trim input name

This commit is contained in:
Adrian Woźniak 2023-07-31 15:24:23 +02:00
parent 40fd0863fc
commit ae072d1812

View File

@ -101,6 +101,8 @@ impl ActixAdminModel {
while let Some(item) = payload.next().await { while let Some(item) = payload.next().await {
let mut field = item?; let mut field = item?;
eprintln!("FIELD NAME {:?}, FILENAME {:?}", field.name(), field.content_disposition().get_filename());
let mut binary_data: Vec<Bytes> = Vec::new(); let mut binary_data: Vec<Bytes> = Vec::new();
while let Some(chunk) = field.next().await { while let Some(chunk) = field.next().await {
binary_data.push(chunk.unwrap()); binary_data.push(chunk.unwrap());