You should use response.stream. http streaming and downloading are the same thing. The only special thing response.stream does is it allow the server to respond to range requests, when the client asks for partial content of the file.
On Jan 4, 2011, at 10:54 PM, Hasanat Kazmi wrote: > Hello, > > I have searched a lot and also tried to forge this up but I could not > locate or create functionality to download a file from the server; not > stream, just normal download. > > response.download requires a database field and response.stream > streams a file, it doesn't simple download it. > (I might be confusing the difference between streaming and downloading). > I tried to set chunk size in stream function more than size of file in > an attempt to make it equal to download but it is not working. I am > comparing it to a file hosted by SimpleHTTPServer of CPython. Any idea > how can I do it? Is it about headers? > > Hasanat Kazmi > +923464362473

