Hi,

I need to download files from a server to the client. I'm using jetty
and compojure as the app server.

(defroutes main-route
 (GET "/download" []
    (java.io.File. "testdir/test.zip")))

when the page is called from the browser:
http://localhost:8080/download the downloaded file name is "download"
and not "test.zip",
any ideas how to control the name of the downloaded file?

Thanks.

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to