Including a bunch of binary files in Zope
Hi 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? If I add them into Zope (ie [Add new item]>[File]>[Browse]... etc is there an easier way of doing it? I've got hundreds of files to add and I don't want to do it using the HTML interface. If I have the files in directory outside of Zope how do I reference them? Bearing in mind I only need to link to them for download, no need for the information in the files to be accessible by Zope. thanks - Jason Wong Digital View Ltd 2201 Nanyang Plaza 57 Hung To Road Kwun Tong HONG KONG Tel: +852-2861-3615 Fax: +852-2520-2987 www.digitalview.com
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
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 )
Jason Wong wrote:
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?
<dtml-in imagefolder> <a href="<dtml-var absolute_url>"><dtml-var title_or_id></a> </dtml-in>
If I add them into Zope (ie [Add new item]>[File]>[Browse]... etc is there an easier way of doing it? I've got hundreds of files to add and I don't want to do it using the HTML interface.
ftp my.zope.site/imagefolder 8023 put * (i.e., use zope's ftp feature.)
If I have the files in directory outside of Zope how do I reference them?
I've never used it, but the LocalFS product should do the trick. Ethan Fremen -- http://mindlace.net __________________ mindlace@imeme.net I don't want The Truth but I wouldn't mind a Big Analogy.
participants (3)
-
Graham Chiu -
Jason Wong -
mindlace