Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
1.2.1, 1.6.1
-
None
-
None
Description
I have a design doc and update handler.
function(doc, req) {
log(req);
var newdoc = {};
...
return [newdoc, {
code: 200,
body: req.uuid
}];
}
I made a HTML file with the following form
<form action="http://localhost:5984/db/_design/app/_update/crashreport" method="POST" enctype="multipart/form-data">
<input type="text" name="classname"/><br>
<input type="Submit">
</form>
In the log file I can see that POST request body exists, but was not parsed:
{ "body" : "-----
WebKitFormBoundaryE6xRBni3g8MNw14P\r\nContent-Disposition: form-data; name=\"classname\"\r\n\r\nABC\r\n----WebKitFormBoundaryE6xRBni3g8MNw14P-\r\n",
"form" : { },
...