You need to set the Content-Disposition header yourself, probably.

Content-Disposition: attachment; filename="fname.ext"

On May 16, 5:27 pm, clj123123 <ariela2...@gmail.com> wrote:
> 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/downloadthe 
> 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