[Zope] Content Disposition - Download files
Tino Wildenhain
tino at wildenhain.de
Mon Jun 26 09:29:00 EDT 2006
>>context.REQUEST.RESPONSE.setHeader('Content-Disposition','attachment;
>>filename=%s' % context.getId())
>
> Nice idea, but what i need is different. In PHP there is a function
> called readfile, i'm sure there is something also in Zope, but i'm not
> able to find it!
No, I can tell you you are on the wrong path. Zope isnt PHP. Dont try
to follow old PHP patterns with Zope.
(Of course you could read the file object data but this inefficient)
What is the problem with above solution?
Regards
Tino
More information about the Zope
mailing list