Downloading a file using compojure

2011-05-16 Thread clj123123
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

Re: Downloading a file using compojure

2011-05-16 Thread Alan
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.