​Dear developers,

I have a question related to the issue
https://issues.apache.org/jira/browse/COUCHDB-1705

The problem is that ​view server is not always able to parse update handler
requests. For sample I create an update handler and form:

<form action="_design/test/_update/multipart" method="POST"
enctype="multipart/form-data">
    Select image to upload:
    <input type="file" name="fileToUpload" id="fileToUpload">
    <input type="submit" value="Upload Image" name="submit">
</form>

​Than I use a test file "256.bin"​. When I upload this file to couchdb, it
tries to forward it to a view server as a bunch of bytes. That breaks the
view server becasue data in stdout is not a valid JSON.

In the attachment there is a patch which encodes request's body to base64
string. Tested with 1.6.1. I'd like to propose to merge this patch to the
next release.

Regards,
Anthony

Reply via email to