Hi, Florent: You're right, MarkLogic doesn't provide a public XQuery API that supports multipart/mixed (for instance).
That feature is under consideration for a future release. Other than the obvious (encode and decode multipart/mixed when sending or receiving a payload), do you see any nuances in the use case? By the way, the resource extension capability of the REST API does let a REST client send or receive multipart/mixed, which is passed to or returned from the XQuery extension as a sequence of documents. So, that might provide a supported solution in the interim. Hoping that's useful, Erik Hennum ________________________________________ From: [email protected] [[email protected]] On Behalf Of Florent Georges [[email protected]] Sent: Monday, November 12, 2012 4:24 AM To: Geert Josten; MarkLogic Developer Discussion Subject: 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 _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
