incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jens Alfke <j...@couchbase.com>
Subject Re: CouchDB Inline Attachment version 1.1.0
Date Wed, 21 Sep 2011 21:50:41 GMT

On Sep 21, 2011, at 1:46 PM, Kwasi Gyasi - Agyei wrote:

> "_attachments":[
>  {"test":
>      {"content_type":"text\/plain",
>        "data":"aGVsbG8gd29ybGQ="
>      } 
>  } ]

_attachments is a dictionary, not an array. This should be:

"_attachments”:{
 "test":
     {"content_type":"text\/plain",
       "data":"aGVsbG8gd29ybGQ="
     } 
 }

See <http://wiki.apache.org/couchdb/HTTP_Document_API#Inline_Attachments>

—Jens
Mime
View raw message