RE: Am I a crackhead: CFContent Weirdness
Linking o your download page like this works... Lets assume the download page is called dload.cfm dload.cfm/#DownloadFile#?file=#DownloadFile# dload.cfm needs to contain this line, seems to work fine on it's own. - cfcontent file=#request.filepath##url.file# deletefile=No type=unknown - That's an old fix for NT4 SP6 from the allaire web site about 18 months ago, it still seems to work fine for me on win2k with cf5. Cheers, Craig -Original Message- From: Eric J Hoffman [mailto:[EMAIL PROTECTED]] Sent: 12 November 2001 21:49 To: CF-Talk Subject: RE: Am I a crackhead: CFContent Weirdness CFHEADER NAME=Content-Disposition VALUE=inline; filename=#form.tempfilename# cfcontent type=application/unknown file=D:\blah\clientapps\marcon\archives\#form.tempfilename# It still comes up with the name of the calling template file instead of the file name! Am I still off? Eric J Hoffman Home of Vikings fans Worldwide! http://www.purplepride.org -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED]] Sent: Sunday, November 11, 2001 3:53 PM To: CF-Talk Subject: RE: Am I a crackhead: CFContent Weirdness Well, even when I cfcontent a normal file name like temp.txt, it is naming the file the calling template's file name rather than temp.txt in the save as dialog. Very weird?? Not really - that's how CFCONTENT works. For examples of how to work around this, look here: http://www.figleaf.com/demo/mimetest/ Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Am I a crackhead: CFContent Weirdness
CFHEADER NAME=Content-Disposition VALUE=inline; filename=#form.tempfilename# cfcontent type=application/unknown file=D:\blah\clientapps\marcon\archives\#form.tempfilename# It still comes up with the name of the calling template file instead of the file name! Am I still off? Eric J Hoffman Home of Vikings fans Worldwide! http://www.purplepride.org -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED]] Sent: Sunday, November 11, 2001 3:53 PM To: CF-Talk Subject: RE: Am I a crackhead: CFContent Weirdness Well, even when I cfcontent a normal file name like temp.txt, it is naming the file the calling template's file name rather than temp.txt in the save as dialog. Very weird?? Not really - that's how CFCONTENT works. For examples of how to work around this, look here: http://www.figleaf.com/demo/mimetest/ Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 ~~ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Am I a crackhead: CFContent Weirdness
what is your OS and SP level? Duane -Original Message- From: Eric J Hoffman [mailto:[EMAIL PROTECTED]] Sent: Monday, November 12, 2001 4:49 PM To: CF-Talk Subject: RE: Am I a crackhead: CFContent Weirdness CFHEADER NAME=Content-Disposition VALUE=inline; filename=#form.tempfilename# cfcontent type=application/unknown file=D:\blah\clientapps\marcon\archives\#form.tempfilename# It still comes up with the name of the calling template file instead of the file name! Am I still off? Eric J Hoffman Home of Vikings fans Worldwide! http://www.purplepride.org -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED]] Sent: Sunday, November 11, 2001 3:53 PM To: CF-Talk Subject: RE: Am I a crackhead: CFContent Weirdness Well, even when I cfcontent a normal file name like temp.txt, it is naming the file the calling template's file name rather than temp.txt in the save as dialog. Very weird?? Not really - that's how CFCONTENT works. For examples of how to work around this, look here: http://www.figleaf.com/demo/mimetest/ Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 ~~ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Am I a crackhead: CFContent Weirdness
The host is CF 5 on a Win2000 box if I recall correctly. Eric J Hoffman Home of Vikings fans Worldwide! http://www.purplepride.org -Original Message- From: Duane Boudreau [mailto:[EMAIL PROTECTED]] Sent: Monday, November 12, 2001 3:59 PM To: CF-Talk Subject: RE: Am I a crackhead: CFContent Weirdness what is your OS and SP level? Duane -Original Message- From: Eric J Hoffman [mailto:[EMAIL PROTECTED]] Sent: Monday, November 12, 2001 4:49 PM To: CF-Talk Subject: RE: Am I a crackhead: CFContent Weirdness CFHEADER NAME=Content-Disposition VALUE=inline; filename=#form.tempfilename# cfcontent type=application/unknown file=D:\blah\clientapps\marcon\archives\#form.tempfilename# It still comes up with the name of the calling template file instead of the file name! Am I still off? Eric J Hoffman Home of Vikings fans Worldwide! http://www.purplepride.org -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED]] Sent: Sunday, November 11, 2001 3:53 PM To: CF-Talk Subject: RE: Am I a crackhead: CFContent Weirdness Well, even when I cfcontent a normal file name like temp.txt, it is naming the file the calling template's file name rather than temp.txt in the save as dialog. Very weird?? Not really - that's how CFCONTENT works. For examples of how to work around this, look here: http://www.figleaf.com/demo/mimetest/ Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Am I a crackhead: CFContent Weirdness
Try this piece of code on your server to verify: cfoutput#Server.OS.Version# #Server.OS.BuildNumber# #Server.ColdFusion.ProductVersion#/cfoutput -Original Message- From: Eric J Hoffman [mailto:[EMAIL PROTECTED]] Sent: Monday, November 12, 2001 5:04 PM To: CF-Talk Subject: RE: Am I a crackhead: CFContent Weirdness The host is CF 5 on a Win2000 box if I recall correctly. Eric J Hoffman Home of Vikings fans Worldwide! http://www.purplepride.org -Original Message- From: Duane Boudreau [mailto:[EMAIL PROTECTED]] Sent: Monday, November 12, 2001 3:59 PM To: CF-Talk Subject: RE: Am I a crackhead: CFContent Weirdness what is your OS and SP level? Duane -Original Message- From: Eric J Hoffman [mailto:[EMAIL PROTECTED]] Sent: Monday, November 12, 2001 4:49 PM To: CF-Talk Subject: RE: Am I a crackhead: CFContent Weirdness CFHEADER NAME=Content-Disposition VALUE=inline; filename=#form.tempfilename# cfcontent type=application/unknown file=D:\blah\clientapps\marcon\archives\#form.tempfilename# It still comes up with the name of the calling template file instead of the file name! Am I still off? Eric J Hoffman Home of Vikings fans Worldwide! http://www.purplepride.org -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED]] Sent: Sunday, November 11, 2001 3:53 PM To: CF-Talk Subject: RE: Am I a crackhead: CFContent Weirdness Well, even when I cfcontent a normal file name like temp.txt, it is naming the file the calling template's file name rather than temp.txt in the save as dialog. Very weird?? Not really - that's how CFCONTENT works. For examples of how to work around this, look here: http://www.figleaf.com/demo/mimetest/ Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 ~~ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
CFContent Weirdness
I have a report which works fine as HTML output. As soon as I add in the following CFCONTENT tag, the report somehow looses all the variables from the form previous to it which passes information into it. Here's the tag I'm using: cfcontent type="application/msword" Now, If I change the tag to: cfcontent type="application/rtf" It works fine and I can download the generated report, name it as a doc file, and then open it up in Word. What's the problem here? First of all, I'd really like my browser to launch Word (we're all using MSIE 5.0) and secondly, if I'm forced to download the file instead, I'd like to pass a doc name through to the download prompt of the browser. (It currently names it as the name of the CFML template by default.) I've tried this trick: http://servername/cfdocs/index.cfm/xyz.doc?fuseaction=showWordDoc But it doesn't work on my server. Gives me a 405 error. What am I doing wrong? ---mark -- Mark Warrick Phone: (714) 547-5386 Efax.com Fax: (801) 730-7289 Personal Email: [EMAIL PROTECTED] Personal URL: http://www.warrick.net Business Email: [EMAIL PROTECTED] Business URL: http://www.fusioneers.com ICQ: 346566 -- -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebarRstsbodyRsts/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: CFContent Weirdness
What we do here is a cfhttp call to the template that creates the HTML for the report passing through the file attribute. Then cfcontent the file that was created in the cfhttp. That way you don't lose anything. Let me know if you need anymore help with this. --K -Original Message- From: Warrick, Mark [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 17, 2000 9:20 AM To: CF-Talk Subject: CFContent Weirdness I have a report which works fine as HTML output. As soon as I add in the following CFCONTENT tag, the report somehow looses all the variables from the form previous to it which passes information into it. Here's the tag I'm using: cfcontent type="application/msword" Now, If I change the tag to: cfcontent type="application/rtf" It works fine and I can download the generated report, name it as a doc file, and then open it up in Word. What's the problem here? First of all, I'd really like my browser to launch Word (we're all using MSIE 5.0) and secondly, if I'm forced to download the file instead, I'd like to pass a doc name through to the download prompt of the browser. (It currently names it as the name of the CFML template by default.) I've tried this trick: http://servername/cfdocs/index.cfm/xyz.doc?fuseaction=showWordDoc But it doesn't work on my server. Gives me a 405 error. What am I doing wrong? ---mark -- Mark Warrick Phone: (714) 547-5386 Efax.com Fax: (801) 730-7289 Personal Email: [EMAIL PROTECTED] Personal URL: http://www.warrick.net Business Email: [EMAIL PROTECTED] Business URL: http://www.fusioneers.com ICQ: 346566 -- -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.