From commits-return-6707-apmail-couchdb-commits-archive=couchdb.apache.org@couchdb.apache.org Sat Jul 30 15:58:34 2011 Return-Path: X-Original-To: apmail-couchdb-commits-archive@www.apache.org Delivered-To: apmail-couchdb-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C811A7E09 for ; Sat, 30 Jul 2011 15:58:34 +0000 (UTC) Received: (qmail 28713 invoked by uid 500); 30 Jul 2011 15:58:34 -0000 Delivered-To: apmail-couchdb-commits-archive@couchdb.apache.org Received: (qmail 28658 invoked by uid 500); 30 Jul 2011 15:58:34 -0000 Mailing-List: contact commits-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 commits@couchdb.apache.org Received: (qmail 28651 invoked by uid 500); 30 Jul 2011 15:58:33 -0000 Delivered-To: apmail-incubator-couchdb-commits@incubator.apache.org Received: (qmail 28648 invoked by uid 99); 30 Jul 2011 15:58:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 30 Jul 2011 15:58:33 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.131] (HELO eos.apache.org) (140.211.11.131) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 30 Jul 2011 15:58:32 +0000 Received: from eos.apache.org (localhost [127.0.0.1]) by eos.apache.org (Postfix) with ESMTP id 8A7DEC15; Sat, 30 Jul 2011 15:58:12 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From: Apache Wiki To: Apache Wiki Date: Sat, 30 Jul 2011 15:58:12 -0000 Message-ID: <20110730155812.98043.18661@eos.apache.org> Subject: =?utf-8?q?=5BCouchdb_Wiki=5D_Update_of_=22HTTP=5FDocument=5FAPI=22_by_Jan?= =?utf-8?q?Lehnardt?= Auto-Submitted: auto-generated Dear Wiki user, You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for c= hange notification. The "HTTP_Document_API" page has been changed by JanLehnardt: http://wiki.apache.org/couchdb/HTTP_Document_API?action=3Ddiff&rev1=3D77&re= v2=3D78 Comment: remove out-of order comment = A note on attachment names: Attachments may have embedded '''/''' charact= ers that are sent unescaped to CouchDB. You can use this to provide a subtr= ee of attachments under a document. A DocID must have any '''/''' escaped a= s '''%2F'''. So if you have document ''a/b/c'' with an attachment ''d/e/f.t= xt'', you would be able to access it at [[http://couchdb/db/a/b/c/d/e/f.txt= |http://couchdb/db/a%2fb%2fc/d/e/f.txt]] . = - = =3D=3D=3D Standalone Attachments =3D=3D=3D - Note: This was added in version 0.9 of CouchDB. It is not available in ea= rlier versions. = - CouchDB allows to create, change and delete attachments without touching = the actual document. As a bonus feature, you do not have to base64 encode y= our data. This can significantly speed up requests since CouchDB and your c= lient do not have to do the base64 conversion. + CouchDB allows to create, change and delete attachments without touching = the actual document. = = You need to specify a MIME type using the Content-Type header. CouchDB wi= ll serve the attachment with the specified Content-Type when asked. =20