Graham please correct me if I'm mistaken - having read the How-To it seems that it only allows you to get at the *contents* of the files. All I need is a pointer, a reference, to the file so someone can download it. Anyway I tried it with the following: <dtml-var standard_html_header> <h2><dtml-var title_or_id></h2> <a href="<dtml-var "support['brochures']['brochure.pdf']">">Test Doc</a> <dtml-var standard_html_footer> When I view this in the browser I get a 'Save to file' dialog, I duly saved the file (it was an HTML file) and on viewing the saved file I can see that it does indeed contain the contents of brochure.pdf(!), which is not what I want. To re-phrase my original question - how do I construct a URL in Zope such that it can refer to a file on the local filesystem? thanks - Jason Wong
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Graham Chiu Sent: 27 March 2000 17:20 To: zope@zope.org Subject: Re: [Zope] Including a bunch of binary files in Zope
In article <000601bf97c5$3590d960$0200a8c0@digitalview.com.hk>, Jason Wong <jwong@digitalview.com.hk> writes
I've got a load of files (PDFs, TIFs) that needs to be accessible from within a Zope application. I need to be able to link to them so people can download them. What is the best way to go about it?
localFS
http://www.zope.org/Members/jfarr/HowTo/DTML_with_LocalFS ------- Regards, Graham Chiu gchiu<at>compkarori.co.nz http://www.compkarori.com/dynamo - The Homebuilt Dynamo http://www.compkarori.com/dbase - The dBase bulletin _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )