Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8C220968F for ; Thu, 29 Mar 2012 21:20:34 +0000 (UTC) Received: (qmail 59049 invoked by uid 500); 29 Mar 2012 21:20:33 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 59005 invoked by uid 500); 29 Mar 2012 21:20:33 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 58990 invoked by uid 99); 29 Mar 2012 21:20:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Mar 2012 21:20:33 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of pulkitsinghal@gmail.com designates 209.85.215.52 as permitted sender) Received: from [209.85.215.52] (HELO mail-lpp01m010-f52.google.com) (209.85.215.52) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Mar 2012 21:20:26 +0000 Received: by lahi5 with SMTP id i5so4035051lah.11 for ; Thu, 29 Mar 2012 14:20:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=5FEau5UXob8N33ulkYSz8VluxIdfeCzv/f4CWsbyi0c=; b=RwQT0GpXaUhutKJmtZ0mIIdooQP8a9wpk+TNegom88CiR09tdH8NzYx1sg9ufboA91 aUocQF8FbjpCsVJyq4JjFveRjbqCxLP5U/5yPQtklmVhcNES2a6he/Dcto2cUSD7uEcz exNUO/H6uRN8TMHsSXzHavPm7iZr74fUxI+tsafAvIjsrf+I9EuqpmAWRMPl3uwS/fWe Nyn49xMiFRR+uCVjeFS12zEHbNZgCMdbWVCkMLZO1lEdzkR4e1S5EBugeUl0lIGTKURW hzFlp7OhyiySNZ/jU9EuHBNaz2K39qMwwzSr+dhHqk4VPlLVUfSN7ASgdmhrc6xYGTd9 4VNA== MIME-Version: 1.0 Received: by 10.152.112.132 with SMTP id iq4mr28886269lab.28.1333056005247; Thu, 29 Mar 2012 14:20:05 -0700 (PDT) Received: by 10.112.104.105 with HTTP; Thu, 29 Mar 2012 14:20:05 -0700 (PDT) Date: Thu, 29 Mar 2012 16:20:05 -0500 Message-ID: Subject: Adding additional fields to _attachments From: Pulkit Singhal To: CouchDB Content-Type: multipart/alternative; boundary=f46d0408d673a8932a04bc6849a9 X-Virus-Checked: Checked by ClamAV on apache.org --f46d0408d673a8932a04bc6849a9 Content-Type: text/plain; charset=UTF-8 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? --f46d0408d673a8932a04bc6849a9--