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:19:39 GMT
Sure.

curl -X PUT -H 'Content-Type: multipart/related; boundary="abc123"'
http://localhost:5984/odms_contents/abc -d@test.data

I have the data in a file called test.data, formatted exactly as in the
example.

Not sure what else I could be missing here.



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

> Hi,
>
> Could you show your curl command for upload?
> --
> ,,,^..^,,,
>
>
> On Tue, Mar 25, 2014 at 12:45 PM, JC de Villa <jc.devilla@gmail.com>
> wrote:
> > Hi guys,
> >
> > I'm playing with multiple attachments using multipart/related as
> explained
> > in
> >
> >
> http://docs.couchdb.org/en/latest/api/document/common.html#creating-multiple-attachments
> >
> > I wind up with the error below
> >
> > [Tue, 25 Mar 2014 08:33:59 GMT] [error] [emulator] Error in process
> > <0.28322.2> with exit value: {{nocatch,<<18
> >
> bytes>>},[{couch_httpd_db,receive_request_data,2},{couch_httpd,read_until,3},{couch_httpd,parse_part_header,1},{couch_httpd,parse_multipart_request,3},{couch_doc,'-doc_from_multi_part_stream/2-fun-1-',3}]}
> >
> > This is on couchdb 1.5, on ubuntu 12.04 server, using curl from CLI.
> >
> > Considering how simple the example is, I'm completely at a loss as to
> why I
> > can't even get that to work.
> >
> > Any help would be appreciated.
> >
> > --
> > JC de Villa
>



-- 
JC de Villa

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