I sent from my wifes email http://groups.google.com/group/web2py/browse_thread/thread/fe85dca9e48c79ad
However with hindsight I think I did not give sufficient information in my forum entry. I guess I was seeing if other people had had problems with downloading zip files. Today, I just tried the following def downloady(): import os import contenttype as c path="somepath/album.zip" response.headers['Content-Type'] = c.contenttype(path) response.headers['Content-Disposition'] = 'attachment; filename=album.zip'# to force download as attachment return response.stream(open(path,'rb'),chunk_size=4096) and this did work correctly. So I do not know why I was having problems last month, when I repeatedly had problems with downloaded zip files not unzipping. So I aplogise for suggesting there was a bug here. I will see if I can recreate the problems I was having and get to the root cause. Peter On Oct 14, 12:22 am, Massimo Di Pierro <massimo.dipie...@gmail.com> wrote: > On Oct 13, 12:46 pm, peter <peterchutchin...@gmail.com> wrote: > > > As I have reported previously in this forum, I think that > > response.stream does not quite stream zip files correctly. > > I have no bug report about this. Can you tell us more so we can fix it?