ashafa/clutch — Issue #39: Add support for "follows" attachments
Author: cemerick
Created: 2011-12-20 06:09:27+00:00
State: open

Would replace inline attachments, for uploading attachments along with a new document, but _without_ the base64 disaster!

From #cloudant:

> rnewson: send a multipart/related message. the first part should be json, subsequent parts the binary attachments
> rnewson: iirc you need to include the _attachments stub with follows:true and the length.

This appears related to the binary-only replication support:

https://issues.apache.org/jira/browse/COUCHDB-639

…which refers to the `new_edits=false` feature in `_bulk_docs` here: http://wiki.apache.org/couchdb/HTTP_Bulk_Document_API

`put-document` is where this is really needed though; worth experimenting with and/or following up with `rnewson` for details on docs (if any — http://wiki.apache.org/couchdb/HTTP_Document_API#Attachments doesn't mention this `multipart/related` + `follows:true` approach at all).