couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From JC de Villa <jc.devi...@gmail.com>
Subject Re: Uploading attachments using Multipart/related
Date Tue, 25 Mar 2014 09:25:44 GMT
Hmm,

I get the same using -T and --data-binary (tried again just now).




On Tue, Mar 25, 2014 at 5:22 PM, Alexander Shorin <kxepal@gmail.com> wrote:

> On Tue, Mar 25, 2014 at 1:19 PM, JC de Villa <jc.devilla@gmail.com> wrote:
> > curl -X PUT -H 'Content-Type: multipart/related; boundary="abc123"'
> > http://localhost:5984/odms_contents/abc -d@test.data
>
> That's the problem. -d sends data as text. you should use
> --data-binary or -T argument to send it as binary.
>
> --
> ,,,^..^,,,
>



-- 
JC de Villa

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message