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