Hi! How to get the content of an incoming POST
httpRequest in :body #object[org.eclipse.jetty.server.HttpInputOverHTTP 0x42c3599b "HttpInputOverHTTP@42c3599b"]
? I know that the body is composed of a part named data
whose MIME-type
is text-plain
and another part named excel
whose MIME-type
is application/excel
. (edited)
I suppose it’s a file upload, right? Use wrap-multipart-params
(https://github.com/ring-clojure/ring/wiki/File-Uploads), then take a look in :params
key of the request. data
and excel
should be there.