[Zope] download file from LocalFS

Jonothan Farr jfarr@real.com
Wed, 24 Jan 2001 12:01:35 -0800


> When mylfs references a directory meta_type is 'Local Directory'
> but if mylfs references a file meta_type is 'File'.
>
> How can I let the user download the file?

I tried it like this:

<dtml-call "RESPONSE.setHeader('content-type',mylfs.content_type)">
<dtml-var mylfs>

It mostly worked, except that my html documents were getting html-quoted. If you
can solve that I think you're home free.

--jfarr