formdata
Documentation is available at https://mikedilger.github.io/formdata
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.
Example
// `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!;
let form_data = try!;
for in form_data.fields
for in form_data.files