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 EA3969EB7 for ; Wed, 21 Sep 2011 20:46:50 +0000 (UTC) Received: (qmail 32220 invoked by uid 500); 21 Sep 2011 20:46:49 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 32177 invoked by uid 500); 21 Sep 2011 20:46:49 -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 32169 invoked by uid 99); 21 Sep 2011 20:46:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Sep 2011 20:46:49 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [74.125.82.180] (HELO mail-wy0-f180.google.com) (74.125.82.180) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Sep 2011 20:46:41 +0000 Received: by wyh11 with SMTP id 11so508342wyh.11 for ; Wed, 21 Sep 2011 13:46:19 -0700 (PDT) Received: by 10.227.197.76 with SMTP id ej12mr363607wbb.102.1316637979501; Wed, 21 Sep 2011 13:46:19 -0700 (PDT) Received: from [192.168.0.3] (41-132-27-28.dsl.mweb.co.za. [41.132.27.28]) by mx.google.com with ESMTPS id p13sm8371376wbh.13.2011.09.21.13.46.16 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 21 Sep 2011 13:46:18 -0700 (PDT) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Apple Message framework v1244.3) Subject: Re: CouchDB Inline Attachment version 1.1.0 From: Kwasi Gyasi - Agyei In-Reply-To: Date: Wed, 21 Sep 2011 22:46:12 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <350596FD-77B7-4257-814A-5B555DB1105D@4things.co.za> References: To: user@couchdb.apache.org X-Mailer: Apple Mail (2.1244.3) X-Virus-Checked: Checked by ClamAV on apache.org No custom validation function, request sent appears as follows "{"name":"Kwasi", "surname":"Gyasi - Agyei", "_attachments":[ {"test": {"content_type":"text\/plain", "data":"aGVsbG8gd29ybGQ=3D" }=20 } ] }" =20 data is base64_encoded, trimmed line breaks and carriage returns values.=20= when I process the same request changing _attachments to attachments = that works with no issues... 4Things Multimedia and Communication | Property | Entertainment Kwasi Owusu Gyasi - Agyei cell (+27) (0) 76 466 4488 website www.4things.co.za email kwasi.gyasiagyei@4things.co.za skype kwasi.gyasiagyei role Developer.Designer.Software Architect On 21 Sep 2011, at 8:44 PM, Jens Alfke wrote: >=20 > On Sep 21, 2011, at 10:52 AM, Kwasi Gyasi - Agyei wrote: >=20 > [debug] [<0.23325.0>] Minor error in HTTP request: {doc_validation, > <<"Bad special = document member: _attachments">>} >=20 > Does the database you=92re writing to have a custom validation = function that=92s rejecting attachments? >=20 > If it=92s not that, check that the value of the _attachments property = is correctly structured. >=20 > =97Jens