You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by Adam Kocoloski <ko...@apache.org> on 2009/05/05 15:38:23 UTC

status of multipart requests / attachment replication

Hi devs, in COUCHDB-163 we enabled the replicator to download  
attachments without Base64 encoding.  We'd like to do the same for  
push replication / attachment uploads.

MIME multipart is one way to go about that.  Has anyone put in some  
work on that front?  are there other alternatives we should be  
thinking about?  Best,

Adam

Re: status of multipart requests / attachment replication

Posted by Damien Katz <da...@apache.org>.
On May 5, 2009, at 11:01 AM, Chris Anderson wrote:

> On Tue, May 5, 2009 at 6:38 AM, Adam Kocoloski <ko...@apache.org>  
> wrote:
>> Hi devs, in COUCHDB-163 we enabled the replicator to download  
>> attachments
>> without Base64 encoding.  We'd like to do the same for push  
>> replication /
>> attachment uploads.
>>
>> MIME multipart is one way to go about that.  Has anyone put in some  
>> work on
>> that front?  are there other alternatives we should be thinking  
>> about?
>
> Standalone attachment PUT is one option, which would mirror nicely the
> pull/GET case.

That wouldn't work for replication because you'd have to post the  
documents without attachments, then add attachments in separate steps.  
This means the document is in weird not-quite-saved state while  
waiting for attachments.

I think we need mime-multipart for replication, that solves all the  
problems cleanly.

-Damien

>
>>  Best,
>>
>> Adam
>>
>
>
>
> -- 
> Chris Anderson
> http://jchrisa.net
> http://couch.io


Re: status of multipart requests / attachment replication

Posted by Chris Anderson <jc...@apache.org>.
On Tue, May 5, 2009 at 6:38 AM, Adam Kocoloski <ko...@apache.org> wrote:
> Hi devs, in COUCHDB-163 we enabled the replicator to download attachments
> without Base64 encoding.  We'd like to do the same for push replication /
> attachment uploads.
>
> MIME multipart is one way to go about that.  Has anyone put in some work on
> that front?  are there other alternatives we should be thinking about?

Standalone attachment PUT is one option, which would mirror nicely the
pull/GET case.

>  Best,
>
> Adam
>



-- 
Chris Anderson
http://jchrisa.net
http://couch.io