Fork me on GitHub
#ring
<
2019-02-24
>
jonathanj16:02:54

I’m using compojure-api and I’m wondering if there’s a way to specify (and coerce) a multipart POST that contains both a file and some JSON, presumably in different multipart params.

jonathanj16:02:56

Trying the obvious thing :multipart-params [file :- TempFileUpload metadata :- {s/Keyword s/Any}] fails claiming that metadata isn’t a map, which I guess is obvious since it’s serialized JSON but I’m not sure how to get the result I want.