RE: CFCONTENT Problem
I am not sure if this is what you are wanting, but I do a cffile to create csv files all the time. Then the file is appended too with each outputted line of your query. Larry Juncker Senior Cold fusion Developer Heartland Communications Group, Inc. [EMAIL PROTECTED] (515) 574-2122 CONFIDENTIALITY NOTICE The information contained in this e-mail is intended only for the use of the individual or entity to which it is addressed. This e-mail may contain information that is privileged, confidential and/or personal. If the reader of this message is not the intended recipient (or the employee or agent responsible to deliver it to the intended recipient), you are hereby notified that any dissemination, distribution, or copying of this communication is prohibited. If you have received this communication in error, please notify us at the e-mail listed above. -Original Message- From: David Sampson [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 1:50 PM To: CF-Talk Subject: CFCONTENT Problem Once again I find myself running to you for help! Boy am I glad you're here! Okey doke; I want to push the results of a query out to a delimited list (or excel, or ms word) such that someone can click on a link and download a .txt (.xls, .doc) file. I'm able, using cfcontent tag to create a list and make it available for download as a .cfm file. How do I get it to download as a .txt (.xls, .doc)? Here's the code for my test page: .!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN .cfparam name=do default=not yet .cfif DO is not not yet .cfcontent type=application/msexcel .CFQUERY NAME=qryCountries DATASOURCE=Country SELECT PK, CC, Country FROM dbo.tblCountries /CFQUERY PK,CC,Country .cfoutput query=qryCountries #PK#,#CC#,#country# ./cfoutput ./cfif .html .head titleTESTER/title ./head .body here's a test of the cfcontent tag.br .a href=testpage.cfm?do=nowCountry Codes/a ./body ./html This pulls a list of countries with their codes in a comma delimited list but tries to save it as testpage.cfm not .txt (or .xls as you'd expect from the mimetype of msexcel). Thanks in advance for all your help, David David Sampson Analyst/Programmer II AK Department of Education Early Development [EMAIL PROTECTED] ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Host with the leader in ColdFusion hosting. Voted #1 ColdFusion host by CF Developers. Offering shared and dedicated hosting options. www.cfxhosting.com/default.cfm?redirect=10481 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: CFCONTENT Problem
I think I'll answer that with the time honoured Figleaf Daves' .. Mime test page http://www.figleaf.com/demo/mimetest/ if that page ever dissappeared there will be trouble... :-) WG -Original Message- From: David Sampson [mailto:[EMAIL PROTECTED] Sent: 04 June 2003 19:50 To: CF-Talk Subject: CFCONTENT Problem Once again I find myself running to you for help! Boy am I glad you're here! Okey doke; I want to push the results of a query out to a delimited list (or excel, or ms word) such that someone can click on a link and download a .txt (.xls, .doc) file. I'm able, using cfcontent tag to create a list and make it available for download as a .cfm file. How do I get it to download as a .txt (.xls, .doc)? Here's the code for my test page: .!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN .cfparam name=do default=not yet .cfif DO is not not yet .cfcontent type=application/msexcel .CFQUERY NAME=qryCountries DATASOURCE=Country SELECT PK, CC, Country FROM dbo.tblCountries /CFQUERY PK,CC,Country .cfoutput query=qryCountries #PK#,#CC#,#country# ./cfoutput ./cfif .html .head titleTESTER/title ./head .body here's a test of the cfcontent tag.br .a href=testpage.cfm?do=nowCountry Codes/a ./body ./html This pulls a list of countries with their codes in a comma delimited list but tries to save it as testpage.cfm not .txt (or .xls as you'd expect from the mimetype of msexcel). Thanks in advance for all your help, David David Sampson Analyst/Programmer II AK Department of Education Early Development [EMAIL PROTECTED] ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Host with the leader in ColdFusion hosting. Voted #1 ColdFusion host by CF Developers. Offering shared and dedicated hosting options. www.cfxhosting.com/default.cfm?redirect=10481 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfcontent problem
Are you doing this via CFCONTENT? If so, that's a absolute path, not a relative one. ~Todd At 09:06 AM 3/7/2003 -0600, you wrote: I tried to send a few email yesterday that never came through so i will try it again. I have some code that forces the download of a jpg. The file is in a virtual directory I setup in IIS on Win2k. The problem is when you click the link to have it download I get an error saying It cannot download the file from the website. It then says it cannot find the site or its unavailable. Any ideas as to why this could happen? Thanks Phillip B. -- Todd Rafferty ([EMAIL PROTECTED]) - http://www.web-rat.com/ Team Macromedia Volunteer for ColdFusion http://www.macromedia.com/support/forums/team_macromedia/ http://www.devmx.com/ -- ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq 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 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfcontent problem
We are using cfcontent with the absolute path in it. The mime type is set to unknown so it will download. Could it be an issue with ColdFusion and permisions on unkown mime types? Phillip B. - Original Message - From: Todd [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Friday, March 07, 2003 9:13 AM Subject: Re: cfcontent problem Are you doing this via CFCONTENT? If so, that's a absolute path, not a relative one. ~Todd At 09:06 AM 3/7/2003 -0600, you wrote: I tried to send a few email yesterday that never came through so i will try it again. I have some code that forces the download of a jpg. The file is in a virtual directory I setup in IIS on Win2k. The problem is when you click the link to have it download I get an error saying It cannot download the file from the website. It then says it cannot find the site or its unavailable. Any ideas as to why this could happen? Thanks Phillip B. -- Todd Rafferty ([EMAIL PROTECTED]) - http://www.web-rat.com/ Team Macromedia Volunteer for ColdFusion http://www.macromedia.com/support/forums/team_macromedia/ http://www.devmx.com/ -- ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfcontent problem
David Watts posted this ages ago.. I use it for reference... http://www.figleaf.com/demo/mimetest/ ~Todd At 09:46 AM 3/7/2003 -0600, you wrote: We are using cfcontent with the absolute path in it. The mime type is set to unknown so it will download. Could it be an issue with ColdFusion and permisions on unkown mime types? Phillip B. -- Todd Rafferty ([EMAIL PROTECTED]) - http://www.web-rat.com/ Team Macromedia Volunteer for ColdFusion http://www.macromedia.com/support/forums/team_macromedia/ http://www.devmx.com/ -- ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq 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 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfcontent problem
Ok that didn't seem to help much. I just cant seem to get any file to download with the type set to application/unknown. Any one? Phillip B. - Original Message - From: Todd [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Friday, March 07, 2003 10:09 AM Subject: Re: cfcontent problem David Watts posted this ages ago.. I use it for reference... http://www.figleaf.com/demo/mimetest/ ~Todd At 09:46 AM 3/7/2003 -0600, you wrote: We are using cfcontent with the absolute path in it. The mime type is set to unknown so it will download. Could it be an issue with ColdFusion and permisions on unkown mime types? Phillip B. -- Todd Rafferty ([EMAIL PROTECTED]) - http://www.web-rat.com/ Team Macromedia Volunteer for ColdFusion http://www.macromedia.com/support/forums/team_macromedia/ http://www.devmx.com/ -- ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: cfcontent problem
Ok that didn't seem to help much. I just cant seem to get any file to download with the type set to application/unknown. Maybe you should post your code, and/or a public URL that people can get to. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq 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 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfcontent problem
I GOT IT! It turns out there was some code in the application.cfm file that was causing it to break. Thanks for all the help Phillip B. - Original Message - From: Dave Watts [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Friday, March 07, 2003 11:51 AM Subject: RE: cfcontent problem Ok that didn't seem to help much. I just cant seem to get any file to download with the type set to application/unknown. Maybe you should post your code, and/or a public URL that people can get to. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq 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 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: CFCONTENT Problem with PDF Files
I have - I use it quite a bit with cfx_treebeard. I used cfcontent type=application/pdf ... instead of cfheader. Works for me. Rob http://treebeard.sourceforge.net http://ruinworld.sourceforge.net Scientia Est Potentia -Original Message- From: Tim Haak [mailto:[EMAIL PROTECTED]] Sent: Monday, December 09, 2002 8:52 AM To: CF-Talk Subject: CFCONTENT Problem with PDF Files Hello, I am trying to send a PDF to the user so it loads in their browser window. The code I am using is: cfheader name=Content-type value=application/pdf cfcontent deletefile=no file=C:/Inetpub/wwwroot/cfmxdemo/itworks.pdf type=application/pdf Note: I also tried a content-type of x-application/pdf but that didn't work either. IE 5.5 SP2 just loads the PDF as plain text but Netscape 7.0 works fine and opens the Acrobat Plugin in the browser. I also tried using CFFILE to readBinary the file from the server but wasn't able to output/open the file because the binary stored in the variable could not be converted to a string. Here is the code I tried to get that to work: cffile file=C:\Inetpub\wwwroot\cfmxdemo\itworks.pdf action=readBinary variable=test cfoutput#variables.test#/cfoutput Has anyone had any luck with CFCONTENT and PDF files, especially in IE 5.5 SP2? My environment is: Windows 2000 Professional SP3, ColdFusion MX 6,0,0,48097 (Developer version), IIS 5.0. Thanks in advance. Tim Haak [EMAIL PROTECTED] ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq 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
Re: CFCONTENT problem - Resolved
Got it working. T __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. 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: CFContent problem
I'm running the following test code: html ... CFHEADER NAME=Content-Disposition VALUE=inline; filename=Yourfilename.xls CFCONTENT TYPE=application/msexcel Company Name CFOUTPUT QUERY=test #CompanyName##carriage# /CFOUTPUT /CFCONTENT ... And I'm getting this error: Error Diagnostic Information Context validation error in tag CFCONTENT The CFCONTENT tag isn't a block tag - you should only have a start tag, and no end tag. In addition, you don't want to have any extraneous HTML or other text in your document - this won't cause a CF error, but may keep you from achieving the desired result. Here are some simple CFCONTENT examples: 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: CFContent problem - need urgent help
We have a site that uses the CFContent tag for downloading files to the user. We ran into problems with it today where it is giving us blank/empty files. If we check the physical file, everything is fine. ... We had the security patches for the Nimda worm applied today, and have since re-run the service packs for NT, IIS, and CF 4.5 (the server is CF 4.52, on an NT 4 box). Out of curiosity, have you applied the CF 4.x security patch that replaces the API and CGI interfaces? This is just a shot in the dark - I know that these files affect how CFCONTENT behaves. If you haven't, you might try doing that. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 ~~ 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: CFContent problem - need urgent help
I'm not sure if we have those patches - do you know where I can find them? http://www.allaire.com/handlers/index.cfm?id=21566method=full Good luck! Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 ~~ 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: CFContent problem - need urgent help
Shawn, I had this problem too. What Dave said is right -- it IS a permissions problem. He led me to this solution a couple of months ago: I have a PDFS directory that is not in the web root for a certain web application. I serve the PDF files to the user via cfcontent ... The directory that contains these files needs to be accessible to the IUSR_MACHINENAME account with READ rights only (for security reasons) for cfcontent to work properly. If the files you are serving are available through a web link, then you don't need to change any permissions (not your case most likely) since the web accessible content is already running under the IUSR context. Andy -Original Message- From: Shawn Grover [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 19, 2001 9:52 PM To: CF-Talk Subject: CFContent problem - need urgent help We have a site that uses the CFContent tag for downloading files to the user. We ran into problems with it today where it is giving us blank/empty files. If we check the physical file, everything is fine. Funny thing is that this is not happening for ALL files, just most. Some files are behaving normally. We had the security patches for the Nimda worm applied today, and have since re-run the service packs for NT, IIS, and CF 4.5 (the server is CF 4.52, on an NT 4 box). Examining our code shows that it is most definently the CFCONTENT tag causing the problems. If we comment it out, and have our debugging code running, all the debugging code executes just fine, and indicates normal operation. Then the CFContent tag is executed, and it dies. I'm sure this is a server issue, and not a code issue (code was not changed prior to the problems occuring). Any help/suggestions? I'm checking the forums and web for hints now. We'd like to avoid rebuilding the server if we can. ~~ 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: CFCONTENT Problem
If you are using NT with SP 6a: add this to send.cfm cfheader name=Content-Disposition value=attachment; Filename=myfile.txt -Original Message- From: Rich Z [mailto:[EMAIL PROTECTED]] Sent: Sunday, June 10, 2001 4:17 PM To: CF-Talk Subject: CFCONTENT Problem I'm sure this problem has been addressed before, but here it is: I'm trying to make a file available for download through CFCONTENT. The cfm page send.cfm looks like this:: cfcontent type=unknown file=c:\archive\file.mp3 deletefile=No The problem is, instead of sending that file, it sends the right file but it names it send.cfm instead of the actual file name. Any idea how to resolve this? Thanks, Rich ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: CFCONTENT Problem
Give this a shot: CFHEADER NAME=Content-Disposition VALUE=attachment; filename=file.mp3 CFCONTENT TYPE=unknown FILE=c:\archive\file.mp3 DELETEFILE=No Dain Anderson Caretaker, CF Comet http://www.cfcomet.com/ - Original Message - From: Rich Z [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Sunday, June 10, 2001 4:17 PM Subject: CFCONTENT Problem I'm sure this problem has been addressed before, but here it is: I'm trying to make a file available for download through CFCONTENT. The cfm page send.cfm looks like this:: cfcontent type=unknown file=c:\archive\file.mp3 deletefile=No The problem is, instead of sending that file, it sends the right file but it names it send.cfm instead of the actual file name. Any idea how to resolve this? Thanks, Rich ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: CFCONTENT Problem
Still happening. Is there something I need to do on the server side? -Original Message- From: Dain Anderson [mailto:[EMAIL PROTECTED]] Sent: Sunday, June 10, 2001 4:38 PM To: CF-Talk Subject: Re: CFCONTENT Problem Give this a shot: CFHEADER NAME=Content-Disposition VALUE=attachment; filename=file.mp3 CFCONTENT TYPE=unknown FILE=c:\archive\file.mp3 DELETEFILE=No Dain Anderson Caretaker, CF Comet http://www.cfcomet.com/ - Original Message - From: Rich Z [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Sunday, June 10, 2001 4:17 PM Subject: CFCONTENT Problem I'm sure this problem has been addressed before, but here it is: I'm trying to make a file available for download through CFCONTENT. The cfm page send.cfm looks like this:: cfcontent type=unknown file=c:\archive\file.mp3 deletefile=No The problem is, instead of sending that file, it sends the right file but it names it send.cfm instead of the actual file name. Any idea how to resolve this? Thanks, Rich ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: CFCONTENT Problem
What is the WinNT SP? Duane -Original Message- From: Rich Z [mailto:[EMAIL PROTECTED]] Sent: Sunday, June 10, 2001 8:50 PM To: CF-Talk Subject: RE: CFCONTENT Problem Still happening. Is there something I need to do on the server side? -Original Message- From: Dain Anderson [mailto:[EMAIL PROTECTED]] Sent: Sunday, June 10, 2001 4:38 PM To: CF-Talk Subject: Re: CFCONTENT Problem Give this a shot: CFHEADER NAME=Content-Disposition VALUE=attachment; filename=file.mp3 CFCONTENT TYPE=unknown FILE=c:\archive\file.mp3 DELETEFILE=No Dain Anderson Caretaker, CF Comet http://www.cfcomet.com/ - Original Message - From: Rich Z [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Sunday, June 10, 2001 4:17 PM Subject: CFCONTENT Problem I'm sure this problem has been addressed before, but here it is: I'm trying to make a file available for download through CFCONTENT. The cfm page send.cfm looks like this:: cfcontent type=unknown file=c:\archive\file.mp3 deletefile=No The problem is, instead of sending that file, it sends the right file but it names it send.cfm instead of the actual file name. Any idea how to resolve this? Thanks, Rich ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: CFCONTENT Problem
I'm actually using Windows 2000 Server. -Original Message- From: Duane Boudreau [mailto:[EMAIL PROTECTED]] Sent: Sunday, June 10, 2001 8:58 PM To: CF-Talk Subject: RE: CFCONTENT Problem What is the WinNT SP? Duane -Original Message- From: Rich Z [mailto:[EMAIL PROTECTED]] Sent: Sunday, June 10, 2001 8:50 PM To: CF-Talk Subject: RE: CFCONTENT Problem Still happening. Is there something I need to do on the server side? -Original Message- From: Dain Anderson [mailto:[EMAIL PROTECTED]] Sent: Sunday, June 10, 2001 4:38 PM To: CF-Talk Subject: Re: CFCONTENT Problem Give this a shot: CFHEADER NAME=Content-Disposition VALUE=attachment; filename=file.mp3 CFCONTENT TYPE=unknown FILE=c:\archive\file.mp3 DELETEFILE=No Dain Anderson Caretaker, CF Comet http://www.cfcomet.com/ - Original Message - From: Rich Z [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Sunday, June 10, 2001 4:17 PM Subject: CFCONTENT Problem I'm sure this problem has been addressed before, but here it is: I'm trying to make a file available for download through CFCONTENT. The cfm page send.cfm looks like this:: cfcontent type=unknown file=c:\archive\file.mp3 deletefile=No The problem is, instead of sending that file, it sends the right file but it names it send.cfm instead of the actual file name. Any idea how to resolve this? Thanks, Rich ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: CFCONTENT problem
You should also make sure the mime type is setup on the server. You don't have to configure the server if CF is returning the MIME type in the CFCONTENT tag. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 -- Archives: http://www.eGroups.com/list/cf-talk 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.