Re: Re: Re: [Zope] download a file in a specific folder in the filesystem
24 Aug
2006
24 Aug
'06
5:16 p.m.
At Thursday 24/8/2006 13:55, Alan wrote:
Thanks a lot guys, it's working fine.
elif (func == 'Download'): fname = os.path.join(jobdir,'results.zip') file = open(fname,'rb').read() self.REQUEST.RESPONSE.setHeader('Content-Type', 'application/zip') return file
Better use 'application/x-zip-compressed' and perhaps: REQUEST.RESPONSE.setHeader('Content-Disposition', 'attachment; filename="suggested-filename.zip"') Gabriel Genellina Softlab SRL __________________________________________________ Pregunt�. Respond�. Descubr�. Todo lo que quer�as saber, y lo que ni imaginabas, est� en Yahoo! Respuestas (Beta). �Probalo ya! http://www.yahoo.com.ar/respuestas
7164
Age (days ago)
7164
Last active (days ago)
0 comments
1 participants
participants (1)
-
Gabriel Genellina