ring

2019-02-24T16:46:54.007300Z

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.

2019-02-24T16:47:56.008400Z

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.