couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Newson <rnew...@apache.org>
Subject Re: CouchDB: "invalid_json" error when adding attachment
Date Mon, 04 Nov 2013 19:20:58 GMT
your url is a path to a document, not a path to an attachment.

 /wcs/z1/attachment_name_goes_here

On 4 November 2013 19:10, Hank Knight <hknight555@gmail.com> wrote:
> You can view my document here:
> https://zuhqtr5.couchappy.com/wcs/z1?rev=7-15810428fa1a0eb14c72e456457bb467
>
> I am trying to add an attachement:
>
> curl -vkX PUT -u uiimvuxd@sharklasers.com:password123 \
>  https://zuhqtr5.couchappy.com/wcs/z1?rev=7-15810428fa1a0eb14c72e456457bb467 \
>  --data-binary @image.jpg -H "Content-Type: image/jpg"
>
> I get an error:
> {"error":"bad_request","reason":"invalid_json"}
>
> Could you please help me figure out what I am doing wrong?
> Thanks.

Mime
View raw message