1
0
mirror of https://github.com/actix/examples synced 2025-06-28 09:50:36 +02:00

upgrade to alpha3

This commit is contained in:
Nikolay Kim
2019-04-04 11:37:14 -07:00
parent fbb3dd2c40
commit 86e0f3e02c
36 changed files with 52 additions and 56 deletions

View File

@ -10,7 +10,7 @@ name = "multipart"
path = "src/main.rs"
[dependencies]
actix-web = "1.0.0-alpha.2"
actix-web = "1.0.0-alpha.3"
env_logger = "0.6"
futures = "0.1.25"

View File

@ -19,6 +19,7 @@ pub fn save_file(field: web::MultipartField) -> impl Future<Item = i64, Error =
Either::B(
field
.fold(0i64, move |acc, bytes| {
println!("CHUNK: {:?}", bytes.len());
file.write_all(bytes.as_ref())
.map(|_| acc + bytes.len() as i64)
.map_err(|e| {