OpenRosa FormSubmissionAPI middleware
The xml form submission is returned as req.body and any attached files are returned as req.files.
Incoming files are stored on disk in the
tmp folder and must be cleanup up afterwards with something like:
var openrosa = ;var openrosaMiddleware = ;app;app;
Returns express middleware for receiving and processing OpenRosa form submissions.
options.maxContentLengthsets the maximum content length of form submissions (defaults to 10Mb)
options.securewill redirect OpenRosa clients like ODK Collect to use https to send a submission (it does this by responding to the initial HEAD request from the client with a 204 with the Location headers set with the https protocol set)
Other options are passed directly on to multiparty.