On Apr 13, 2010, at 4:03 PM, ericdes wrote:

> Would there be a way to add custom fields in a document's attachment? I'm 
> thinking about something like this:
> 

You will need to keep them elsewhere in the document, like in a 
my_attachment_metadata field, or something.

> {
>  "_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
> [email protected]

Reply via email to