Advertisement
Guest User

Untitled

a guest
Apr 18th, 2012
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (defn save-rec! [params]
  2.   (s3/put-object cred "rod-bucket" (:filename params) (:bytes params)))
  3.  
  4. ; appengine-magic.multipart-params/wrap-multipart-params works just like
  5. ; the Ring equivalent, except file upload parameters become maps with a :bytes key
  6. ; (instead of :tempfile). This key contains a byte array with the upload data.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement