You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Ronny Coolen <ro...@cognosis.be> on 2009/10/12 11:07:29 UTC
can't upload attachments > 1MB
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: []
Re: can't upload attachments > 1MB
Posted by Ronny Coolen <ro...@cognosis.be>.
Sam Bisbee wrote:
> On Mon, Oct 12, 2009 at 11:07:29AM +0200, Ronny Coolen wrote:
>
>> 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.
>>
>
> Just a guess, but it could be the PHP max file size (usually is with large
> upload problems in PHP). Check php.ini for upload_max_filesize (probably the
> culprit) and post_max_size (if you're POST'ing). Adjust accordingly, as they
> are probably set to < 1MB.
>
Both are set to 16M.
Re: can't upload attachments > 1MB
Posted by Sam Bisbee <sb...@computervip.com>.
On Mon, Oct 12, 2009 at 11:07:29AM +0200, Ronny Coolen wrote:
> 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.
Just a guess, but it could be the PHP max file size (usually is with large
upload problems in PHP). Check php.ini for upload_max_filesize (probably the
culprit) and post_max_size (if you're POST'ing). Adjust accordingly, as they
are probably set to < 1MB.
--
Sam Bisbee