don't unwrap body

This commit is contained in:
Luna 2024-08-04 22:25:42 -03:00
parent 6d917bdf1f
commit a88e1212fc

View file

@ -322,7 +322,7 @@ async fn upload_file(
let name = field.name().unwrap().to_string();
let content_type = field.content_type().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());
if name == "file" {
@ -407,6 +407,7 @@ async fn upload_file(
todo!()
};
log::info!("{} tags from frame", tags_from_frame.len());
for tag in tags_from_frame {
final_tag_set.insert(tag);
}