#http #web #actix #multipart

actix-web-multipart-file

save multipart’s files into temporary files

1 unstable release

0.1.0 Sep 8, 2018

#10 in #multipart

Download history 6/week @ 2018-09-08

1 downloads per month

MIT/Apache

9KB
164 lines


lib.rs:

# extern crate actix_web;
# extern crate actix_web_multipart_file;
# extern crate futures;
# use actix_web::{HttpRequest, HttpMessage, FutureResponse, HttpResponse};
# use actix_web_multipart_file::save_files;
# use futures::Stream;

fn handle_multipart(req: HttpRequest) -> FutureResponse<HttpResponse> {
    save_files(req.multipart())
        .and_then(|field| {
            // do something with field
#           ::futures::future::ok(())
        })
# ; unimplemented!()
    // ...
}

Dependencies

~18MB
~383K SLoC