You need to set the Content-Disposition header yourself, probably.
Content-Disposition: attachment; filename="fname.ext"
On May 16, 5:27 pm, clj123123 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-rou
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 "dow