Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 90533 invoked from network); 18 Feb 2009 14:45:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Feb 2009 14:45:28 -0000 Received: (qmail 13279 invoked by uid 500); 18 Feb 2009 14:45:25 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 13242 invoked by uid 500); 18 Feb 2009 14:45:25 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 13217 invoked by uid 99); 18 Feb 2009 14:45:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Feb 2009 06:45:25 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Feb 2009 14:45:22 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 89864234C498 for ; Wed, 18 Feb 2009 06:45:02 -0800 (PST) Message-ID: <1495395055.1234968302562.JavaMail.jira@brutus> Date: Wed, 18 Feb 2009 06:45:02 -0800 (PST) From: "Robert Newson (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Commented: (COUCHDB-259) Ability to store abitrary data in attachment stubs In-Reply-To: <702755523.1234966621852.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COUCHDB-259?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12674636#action_12674636 ] Robert Newson commented on COUCHDB-259: --------------------------------------- +1, I'd like somewhere to store md5 or sha1 values for the attachments too. I attempted a local hack, and while I can manage it on retrieval, my attempts to get it into the stored file failed. > Ability to store abitrary data in attachment stubs > -------------------------------------------------- > > Key: COUCHDB-259 > URL: https://issues.apache.org/jira/browse/COUCHDB-259 > Project: CouchDB > Issue Type: Wish > Components: Database Core > Affects Versions: 0.8.1 > Reporter: Sho Fukamachi > Priority: Minor > Fix For: 0.8.1 > > > I suggest the ability to store arbitrary data in line with single attachments to a doc. The mooted use is to store metadata about that attachment. > For example, a current attachment: > m['_attachments'] > => {"yamanote.jpg"=>{"content_type"=>"image/jpeg", "stub"=>true, "length"=>382613}} > Desired behaviour is to be able to insert persistent metadata like so: > m['_attachments'] > => {"yamanote.jpg"=>{"content_type"=>"image/jpeg", "stub"=>true, "length"=>382613, "width" => 800, "height" => 600, "md5" => "95de7a118ee28824afa8d2ad8fe5819f"}} > And many other use cases according to media type. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.