don't unwrap body
This commit is contained in:
parent
6d917bdf1f
commit
a88e1212fc
1 changed files with 2 additions and 1 deletions
|
@ -322,7 +322,7 @@ async fn upload_file(
|
||||||
let name = field.name().unwrap().to_string();
|
let name = field.name().unwrap().to_string();
|
||||||
let content_type = field.content_type().unwrap().to_string();
|
let content_type = field.content_type().unwrap().to_string();
|
||||||
let filename = field.file_name().unwrap().to_string();
|
let filename = field.file_name().unwrap().to_string();
|
||||||
let data = field.bytes().await.unwrap();
|
let data = field.bytes().await?;
|
||||||
|
|
||||||
log::info!("Length of `{}` is {} bytes", name, data.len());
|
log::info!("Length of `{}` is {} bytes", name, data.len());
|
||||||
if name == "file" {
|
if name == "file" {
|
||||||
|
@ -407,6 +407,7 @@ async fn upload_file(
|
||||||
todo!()
|
todo!()
|
||||||
};
|
};
|
||||||
|
|
||||||
|
log::info!("{} tags from frame", tags_from_frame.len());
|
||||||
for tag in tags_from_frame {
|
for tag in tags_from_frame {
|
||||||
final_tag_set.insert(tag);
|
final_tag_set.insert(tag);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue