mirror of
https://github.com/actix/examples
synced 2025-06-28 09:50:36 +02:00
upgrade to alpha3
This commit is contained in:
@ -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"
|
||||
|
@ -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| {
|
||||
|
Reference in New Issue
Block a user