couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pulkit Singhal <pulkitsing...@gmail.com>
Subject Adding additional fields to _attachments
Date Thu, 29 Mar 2012 21:20:05 GMT
Is it possible to add additional info about an attachment to a document?
For example, if images may be uploaded to a document and you want to know
which user uploaded which attachment.

I have this in my CouchDB:
   "_attachments": {
       "blah.png": {
           "content_type": "image/png",
           "revpos": 3,
           "digest": "md5-UesBCc6fFHHPxYyIy+fGXA==",
           "length": 97709,
           "stub": true
       }
   }

And I tried to edit it in Futon and put an additional attribute "user" :
"username" into it but the change didn't take effect, I confirmed this by
polling the info after saving it.

Any suggestions on the right approach to do this?

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message