Permalink
Browse files

Made temp-file-store compatible with old multipart-params middleware

  • Loading branch information...
1 parent 3614e45 commit 955baf6945d1b53e7ecb8946e3906b0229b15bab @weavejester weavejester committed Mar 22, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 ring-core/src/ring/middleware/multipart_params/temp_file.clj
View
3 ring-core/src/ring/middleware/multipart_params/temp_file.clj
@@ -9,4 +9,5 @@
(with-open [out (io/output-stream temp-file)]
(io/copy (:stream item) out))
(-> (select-keys item [:filename :content-type])
- (assoc :temp-file temp-file))))
+ (assoc :tempfile temp-file
+ :size (.length temp-file)))))

0 comments on commit 955baf6

Please sign in to comment.