incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ericdes <e...@vcardprocessor.com>
Subject Custom fields in attachments
Date Tue, 13 Apr 2010 23:03:57 GMT
Would there be a way to add custom fields in a document's attachment? 
I'm thinking about something like this:

{
   "_id":"html_page_with_images",
   "_attachments":
   {
     "image1.jpg":
     {
       "content_type":...,
       "data":....,
       "alt":"Image #1",               <== Custom field
       "title":"Title of the image",   <== Custom field
     }
   }
}

Eric Desgranges
eric@vcardprocessor.com

Mime
View raw message