formdata 0.6.1

Parsing of multipart/form-data failed to build formdata-0.6.1
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure builds.
If you believe this is' fault, open an issue.
Visit the last successful build: formdata-0.13.0


Build Status MIT licensed

Documentation is available at

This library provides a function for parsing a stream in multipart/form-data format. It separates embedded files and streams them to disk.

HTML forms with enctype=multipart/form-data POST their data in this format. This enctype is used whenever a form has file upload input fields, as the default application/x-www-form-urlencoded cannot handle file uploads.


// `headers` is your `hyper::headers::Headers` from your hyper or iron request.
// `request` is the readable stream, and can be the hyper or iron request itself.

let boundary = try!(get_multipart_boundary(&headers));
let form_data = try!(parse_multipart(&mut request, boundary));

for (name, value) in form_data.fields {
    println!("Posted field name={} value={}",name,value);

for (name, file) in form_data.files {
    println!("Posted file name={} filename={:?} content_type={} size={} temporary_path={:?}",
             name, file.filename, file.content_type, file.size, file.path);