No custom validation function, request sent appears as follows

"{"name":"Kwasi",
  "surname":"Gyasi - Agyei",
"_attachments":[
  {"test":
      {"content_type":"text\/plain",
        "data":"aGVsbG8gd29ybGQ="
      } 
  } ]

 }"                

data is base64_encoded, trimmed line breaks and carriage returns values. 

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     [email protected]
skype    kwasi.gyasiagyei
role        Developer.Designer.Software Architect


On 21 Sep 2011, at 8:44 PM, Jens Alfke wrote:

> 
> On Sep 21, 2011, at 10:52 AM, Kwasi Gyasi - Agyei wrote:
> 
> [debug] [<0.23325.0>] Minor error in HTTP request: {doc_validation,
>                                                   <<"Bad special document 
> member: _attachments">>}
> 
> Does the database you’re writing to have a custom validation function that’s 
> rejecting attachments?
> 
> If it’s not that, check that the value of the _attachments property is 
> correctly structured.
> 
> —Jens

Reply via email to