Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

File Uploads

weavejester edited this page · 1 revision

Uploading a file to a website requires multipart form handling, which Ring provides with its wrap-multipart-params middleware.

(use 'ring.middleware.params
     'ring.middleware.multipart-params)

(def app
  (-> your-handler
      wrap-params
      wrap-multipart-params))

By default, uploads are stored in temporary files that are deleted an hour after being uploaded.

Something went wrong with that request. Please try again.