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:
@ -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()
|
||||
|
Reference in New Issue
Block a user