1
0
mirror of https://github.com/actix/examples synced 2025-06-26 17:17:42 +02:00

chore: update actix-multipart to v0.7

This commit is contained in:
Rob Ede
2024-07-07 00:59:16 +01:00
parent a67c7803e6
commit 8baa0767a6
5 changed files with 15 additions and 15 deletions

View File

@ -74,7 +74,9 @@ async fn save_file_manual(mut payload: Multipart) -> Result<HttpResponse, Error>
// iterate over multipart stream
while let Some(mut field) = payload.try_next().await? {
// A multipart/form-data stream has to contain `content_disposition`
let content_disposition = field.content_disposition();
let Some(content_disposition) = field.content_disposition() else {
continue;
};
let filename = content_disposition
.get_filename()