I seem to have problems with uploading attachments that are bigger than 1MB.
Under 1MB, it works perfectly.
I am using PHP sockets to connect to the couchdb server.
First, I create a document (which returns success), and then I add an
attachment (which fails).
This is the debug output from couchdb:
[Mon, 12 Oct 2009 08:52:00 GMT] [debug] [<0.324.0>] 'POST' /cognosisnv/
{1,1}
Headers: [{'Content-Length',"82"},
{'Content-Type',"application/json"},
{'Date',"Mon, 12 Oct 09 10:52:31 +0200"}]
[Mon, 12 Oct 2009 08:52:00 GMT] [debug] [<0.324.0>] OAuth Params: []
[Mon, 12 Oct 2009 08:52:00 GMT] [info] [<0.324.0>] 10.60.0.12 - - 'POST'
/cognosisnv/ 201
[Mon, 12 Oct 2009 08:52:00 GMT] [debug] [<0.324.0>] 'PUT'
/cognosisnv/837966fffb20b93a571c5871665bf5cb {1,1}
Headers: [{'Content-Length',"1386854"},
{'Content-Type',"application/json"},
{'Date',"Mon, 12 Oct 09 10:52:31 +0200"}]
[Mon, 12 Oct 2009 08:52:00 GMT] [debug] [<0.324.0>] OAuth Params: []