clojure-china

cmal 2017-03-16T09:03:07.246485Z

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)

2017-03-16T15:25:54.656128Z

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.