We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Mostly provided by Ring-Swagger. Restructuring :multipart-params pushes also multipart/form-data as the only available consumption.
:multipart-params
multipart/form-data
;; versions before 0.23.0 (require '[compojure.api.upload :as upload]) ;; versions 0.23.0+ (require '[ring.swagger.upload :as upload]) ; file is a map with :filename, :content-type, :size and :tempfile as keys (POST "/upload" [] :multipart-params [file :- upload/TempFileUpload] :middleware [upload/wrap-multipart-params] (ok (dissoc file :tempfile)))