improved file uploads
This commit is contained in:
@@ -23,7 +23,7 @@ pub(super) async fn route(
|
||||
};
|
||||
|
||||
let file_name = field.file_name().map(str::to_owned).unwrap();
|
||||
let data = field.bytes().await.unwrap();
|
||||
let data = field.bytes().await?;
|
||||
|
||||
warren
|
||||
.upload(state.serve_dir(), rest.as_deref(), &file_name, &data)
|
||||
|
||||
Reference in New Issue
Block a user