Function Request.form

The fields from a form. Only if content-type is "multipart/form-data".

Request.SafeAccess!(serverino.interfaces.Request.FormData) form() pure nothrow @property @nogc @safe const;
FormData fd = request.form.read("form_id");
if (fd.isFile)
{
  // We have a file attached
  info("File name: ", fd.filename);
  info("File path: ", fd.path);
}
else
{
  // We have data inlined
  into("Content-Type: ", fd.contentType, " Size: ", fd.data.length, " bytes")
  info("Data: ", fd.data);
}