26 Jun
2006
26 Jun
'06
1:29 p.m.
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