Yes, it does return the contents of each part through request-fields, but
that is how it is intended to work I guess.. On the other hand, perhaps it
was only designed to accept that form-data multipart style..

Grtz

> -----Oorspronkelijk bericht-----
> Van: Florent Georges [mailto:[email protected]]
> Verzonden: maandag 12 november 2012 13:25
> Aan: Geert Josten; MarkLogic Developer Discussion
> Onderwerp: Re: [MarkLogic Dev General] Analyzing HTTP multipart request?
>
> Geert Josten wrote:
>
> > I did a bit of testing a while back in which I posted multipart
> > from a browser, using a form like this:
>
> > <form action="default.xqy" method="POST"
enctype="multipart/form-data">
> > <input type="file" name="attachment" size="100"/>
>
>   Oh yes, that very specific case (posting multipart/form-data
> from a form) works well indeed.  But this is far from being the
> general case ;-).  And it does not work by returning the entity
> content of the request via xdmp:get-request-body() (which in this
> specific case returns nothing), but it parses it and map it to
> parameters accessed via xdmp:get-request-field().  If I remember
> correctly.
>
>   What I am looking for is a way to handle any multipart request,
> or at least not only multipart/form-data.
>
>   Anyone knows how the web or HTTP-related frameworks do?  Like
> Roxy or RXQ...
>
>   Regards,
>
> --
> Florent Georges
> http://fgeorges.org/
> http://h2oconsulting.be/
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to