[ 
https://issues.apache.org/jira/browse/COUCHDB-1685?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14109621#comment-14109621
 ] 

Sean Summers commented on COUCHDB-1685:
---------------------------------------

I'm getting the same error with CouchDB/1.6.0 (Erlang OTP/17).

The documentation of this is at: 
http://docs.couchdb.org/en/latest/api/document/common.html#creating-multiple-attachments

Is this a code or documentation error?


> POSTing multipart/related to a database doesn't create a document
> -----------------------------------------------------------------
>
>                 Key: COUCHDB-1685
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1685
>             Project: CouchDB
>          Issue Type: Bug
>            Reporter: João Barbosa
>
> POST application/json to a database creates a document and assigns an id. 
> It's an atomic operation.
> But POST to a database with a multipart/related doesn't. The response error 
> is:
> {
>   "error":"bad_content_type",
>   "reason":"Content-Type must be application/json"
> }



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to