RE: [Zope] Trigger open/download of file object via script
Chris, I am actually using .re3 extensions, not .doc, so the content type is set to application/octet-stream Thanks for your advice - I am doing as you say, but my zope file object id's are NOT named after the file names they came from (they have no .re3 extension) thus IE doesn't know to download it. E.g. a hyperlink to the zope file object http://.../RG/ArgumentFile11 does not trigger a download, IE only views the text of it. when I rename it to http://.../RG/ArgumentFile11.re3 then IE does correctly open/download it. How do I get the IE download behaviour - no matter what the zope file object id is named? -Andy -----Original Message----- From: Curtis Ruck [mailto:cwr2045@tntech.edu] Sent: Tuesday, 18 September 2001 2:20 AM To: 'Andy Bulka' Subject: RE: [Zope] Trigger open/download of file object via script 1st make sure you use File objects. 2nd make sure content type is set properly. For word documents it should be(without quotes): "application/msword". That will tell IE to download it instead of view it -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org] On Behalf Of Andy Bulka Sent: Sunday, September 16, 2001 10:24 PM To: Zope egroups List Subject: [Zope] Trigger open/download of file object via script How do I trigger open/download of file object, whose id have had their .filename extensions removed? My file objects (that have been uploaded into zope via a form) are not given Id's that are the same as their original filename (cos of possible duplicate filename & other issues), thus clicking on a hyperlink genjerated with zope code like this: <a href="&dtml-absolute_url;"><dtml-var id></a> ain't gonna trigger a open/download dialog box (cos IE sees no file extension is present, I guess) Note that I *do* keep the original filename with extension - as the *title* of the file object (rather than as its Id) ) e.g. file01 has a title "fred.doc" e.g. file02 has a title "another letter re news.doc" EXAMPLE WHAT I WANT: I want to be able to click on a hyper link entry for say, "file02" and get a open/download dialog box prompting me to save/open that zope object as "another letter re news.doc" thanks for any help on this, -Andy Bulka _______________________________________________ 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 )
participants (1)
-
Andy Bulka