Advertisement
Guest User

Untitled

a guest
Apr 18th, 2012
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (use '[appengine-magic.multipart-params :only [wrap-multipart-params]])
  2. (require '[gaeclj.models :as m])
  3.  
  4. (defn recording-create
  5.   [{params :multipart-params :as req}]
  6.   (let [rec-info (get params "filename")]
  7.     (m/save-rec! rec-info)
  8.     (response "saved")))
  9.  
  10. ; gaeclj.models
  11. (defn save-rec! [params]
  12.   (s3/put-object cred "rod-bucket" (:filename params)  (apply str (map char (:bytes params))))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement