Documentation is available at https://mikedilger.github.io/formdata
This library provides a function for parsing a stream in multipart/form-data
format, such as what HTTP user agents (browsers) send to HTTP servers via the
POST method in response to HTTP forms with enctype="multipart/form-data".
These streams typically contain embedded uploaded files. This library
separates those files and streams them to disk.
```rust // request is your ::hyper::server::Request
if let Ok(formdata) = parsemultipart(&mut request) { for (name, value) in form_data.fields { println!("Posted variable 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);
}
}
```