parse-multipart-params

ring.middleware.multipart-params

  • (parse-multipart-params request encoding)
Parse a map of multipart parameters from the request.

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source ring/middleware/multipart_params.clj:44 top

(defn parse-multipart-params
  "Parse a map of multipart parameters from the request."
  [request encoding]
  (reduce
    (fn [param-map, #^DiskFileItem item]
      (assoc-param param-map
        (.getFieldName item)
        (if (.isFormField item)
          (.getString item)
          (file-map item))))
    {}
    (.parseRequest
       file-upload
       (request-context request encoding))))
Vars in ring.middleware.multipart-params/parse-multipart-params: defn fn reduce
Used in 0 other vars

Comments top

No comments for parse-multipart-params. Log in to add a comment.