Re: cfcontent question
The first question I would ask is "Why do they want the images stored in a non-web-accessible location" If the answer is something lame like, they don't want users to be able to download them, then you can get around this whole issue as you can tell them that there is no way to totally prevent a user from downloading the image. If they have some valid answer like, they are concerned about people uploading something malicious or in that vein, then you can use several tricks to do it. If you have CF8, you can use the writeToBrowser function of CFIMAGE http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_i_02.html Which allows you to load up any image from anywhere on a server into memory and then output it to the browser HTH =] -- Alan Rother Adobe Certified Advanced ColdFusion MX 7 Developer Manager, Phoenix Cold Fusion User Group, AZCFUG.org ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325043 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
cfcontent question
I have been asked to make a change to a blog like feature. Specifically, they want to allow users to upload a single image per blog post but the images are to be stored in a non-web accessible location. When viewing blog posts, the images are supposed to appear within the text of the blog post. I had thought I would use cfcontent to display the image ... but when I do that, the blog text doesn't display. Does anyone know how to display an image from a non-web accessible location with some accompanying text? ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325041 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: CFContent question ...
Welcome. :) I nearly started writing a whole bunch of stuff about how that part is in the browser and you can only access what's exposed in JS (which is pretty limited), browser variations, etc. etc... and then decided it was probably best just to give a concise answer. :) > Thanks for that, at least I won't waste any more time > looking :-) > -Original Message- > From: S. Isaac Dealey [mailto:[EMAIL PROTECTED] > Sent: 31 August 2005 17:29 > To: CF-Talk > Subject: Re: CFContent question ... >> After I have created a document using cfdocument I am >> using the following code to open the pdf, >> >> > file="#expandpath('MyFilePath')# deletefile="yes" >> reset="no"> >> This shows a dialogue box to the user giving the option >> of >> either saving the document, opening it or cancvel. What I >> want to be able to do is remove the option to open it (I >> think I set the type to "application/unknow" to do this) >> but I also need to be able to capture whether the user >> actually clicked save or cancel, is this possible? > Nope. s. isaac dealey 954.522.6080 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://www.fusiontap.com http://coldfusion.sys-con.com/author/4806Dealey.htm ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:217017 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: CFContent question ...
Thanks for that, at least I won't waste any more time looking :-) -Original Message- From: S. Isaac Dealey [mailto:[EMAIL PROTECTED] Sent: 31 August 2005 17:29 To: CF-Talk Subject: Re: CFContent question ... > After I have created a document using cfdocument I am > using the following code to open the pdf, > > file="#expandpath('MyFilePath')# deletefile="yes" > reset="no"> > This shows a dialogue box to the user giving the option of > either saving the document, opening it or cancvel. What I > want to be able to do is remove the option to open it (I > think I set the type to "application/unknow" to do this) > but I also need to be able to capture whether the user > actually clicked save or cancel, is this possible? Nope. s. isaac dealey 954.522.6080 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://www.fusiontap.com http://coldfusion.sys-con.com/author/4806Dealey.htm ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:217013 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: CFContent question ...
> After I have created a document using cfdocument I am > using the following code to open the pdf, > > file="#expandpath('MyFilePath')# deletefile="yes" > reset="no"> > This shows a dialogue box to the user giving the option of > either saving the document, opening it or cancvel. What I > want to be able to do is remove the option to open it (I > think I set the type to "application/unknow" to do this) > but I also need to be able to capture whether the user > actually clicked save or cancel, is this possible? Nope. s. isaac dealey 954.522.6080 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://www.fusiontap.com http://coldfusion.sys-con.com/author/4806Dealey.htm ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:217006 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
CFContent question ...
After I have created a document using cfdocument I am using the following code to open the pdf, This shows a dialogue box to the user giving the option of either saving the document, opening it or cancvel. What I want to be able to do is remove the option to open it (I think I set the type to "application/unknow" to do this) but I also need to be able to capture whether the user actually clicked save or cancel, is this possible? ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:216982 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Any Possible Bugs in CFMX - ? (Was - CFHEADER & CFCONTENT question)
Here's a snip from one of my apps: /> deletefile="false" type="application/octet-stream" reset="true" /> That's at 4 includes deep. You might try adding the RESET attribute to CFCONTENT. That will remove all content that has been previously emitted. I don't know about the headers. I suspect that if you've previously used CFHEADER to supply a content-type header, that CFCONTENT will write a new one, not replace the existing one, but you'd have to check for sure. Cheers, barneyb > -Original Message- > From: Joe Eugene [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 01, 2004 12:49 PM > To: CF-Talk > Subject: Re: Any Possible Bugs in CFMX - ? (Was - > CFHEADER & CFCONTENT question) > > Barney, > > Are your programs using the below kinda routine/syntax. > > > value="attachment;filename=#variables.docInfo.docFileName#"> > > file="#variables.docInfo.docFileNamePath#"> > > If the Main page is set to use "text/html" content type and > the subsequent inlcude page > switches the header information like the above... Can this > cause the problem? > > Thanks, > Joe Eugene > - Original Message - > From: Barney Boisvert > To: CF-Talk > Sent: Thursday, April 01, 2004 12:53 PM > Subject: RE: Any Possible Bugs in CFMX - ? (Was > - CFHEADER & CFCONTENT question) > > > I've never had issues and I've served files up to a few > meg, both reading > from the filesystem and dynamically generated in realtime. > > Cheers, > barneyb > > > -Original Message- > > From: Joe Eugene [mailto:[EMAIL PROTECTED] > > Sent: Thursday, April 01, 2004 9:48 AM > > To: CF-Talk > > Subject: Re: Any Possible Bugs in CFMX - ? (Was - > > CFHEADER & CFCONTENT question) > > > > Anybody? > > - Original Message - > > From: Joe Eugene > > To: CF-Talk > > Sent: Wednesday, March 31, 2004 4:43 PM > > Subject: RE: Any Possible Bugs in CFMX - ? (Was > > - CFHEADER & CFCONTENT question) > > > > > > Is there a BUG using in CFMX? > > > > It throws all kinda Errors on Log Files when downloading > > files larger than 100K. > > > > Can anybody Explain the Workings behind > > > > Thanks, > > Joe Eugene > > > > -Original Message- > > From: Ketan Patel [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, March 31, 2004 1:20 PM > > To: CF-Talk > > Subject: CFHEADER & CFCONTENT question > > > > Hi, > > I have a intranet application where I am allowing people > > to download > > access > > database. Following is the code I am using > > > > > > > > FILE="#application.filehttppathstring##location#" > DELETEFILE="No"> > > > > My problem is when I want to save the file it gives me 2 > > options Save as > > HTML Document or All files. I don't want the option to > > save as HTML > > document. Is there any mime setting or any code change > > need to be done. > > > > Any help is appreciated. Thanks in advance > > > > Ketan Patel > > > > > > > > > [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Any Possible Bugs in CFMX - ? (Was - CFHEADER & CFCONTENT question)
Barney, Are your programs using the below kinda routine/syntax. If the Main page is set to use "text/html" content type and the subsequent inlcude page switches the header information like the above... Can this cause the problem? Thanks, Joe Eugene - Original Message - From: Barney Boisvert To: CF-Talk Sent: Thursday, April 01, 2004 12:53 PM Subject: RE: Any Possible Bugs in CFMX - ? (Was - CFHEADER & CFCONTENT question) I've never had issues and I've served files up to a few meg, both reading from the filesystem and dynamically generated in realtime. Cheers, barneyb > -Original Message- > From: Joe Eugene [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 01, 2004 9:48 AM > To: CF-Talk > Subject: Re: Any Possible Bugs in CFMX - ? (Was - > CFHEADER & CFCONTENT question) > > Anybody? > - Original Message - > From: Joe Eugene > To: CF-Talk > Sent: Wednesday, March 31, 2004 4:43 PM > Subject: RE: Any Possible Bugs in CFMX - ? (Was > - CFHEADER & CFCONTENT question) > > > Is there a BUG using in CFMX? > > It throws all kinda Errors on Log Files when downloading > files larger than 100K. > > Can anybody Explain the Workings behind > > Thanks, > Joe Eugene > > -Original Message- > From: Ketan Patel [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 31, 2004 1:20 PM > To: CF-Talk > Subject: CFHEADER & CFCONTENT question > > Hi, > I have a intranet application where I am allowing people > to download > access > database. Following is the code I am using > > > > FILE="#application.filehttppathstring##location#" DELETEFILE="No"> > > My problem is when I want to save the file it gives me 2 > options Save as > HTML Document or All files. I don't want the option to > save as HTML > document. Is there any mime setting or any code change > need to be done. > > Any help is appreciated. Thanks in advance > > Ketan Patel > > > [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Any Possible Bugs in CFMX - ? (Was - CFHEADER & CFCONTENT question)
I've never had issues and I've served files up to a few meg, both reading from the filesystem and dynamically generated in realtime. Cheers, barneyb > -Original Message- > From: Joe Eugene [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 01, 2004 9:48 AM > To: CF-Talk > Subject: Re: Any Possible Bugs in CFMX - ? (Was - > CFHEADER & CFCONTENT question) > > Anybody? > - Original Message - > From: Joe Eugene > To: CF-Talk > Sent: Wednesday, March 31, 2004 4:43 PM > Subject: RE: Any Possible Bugs in CFMX - ? (Was > - CFHEADER & CFCONTENT question) > > > Is there a BUG using in CFMX? > > It throws all kinda Errors on Log Files when downloading > files larger than 100K. > > Can anybody Explain the Workings behind > > Thanks, > Joe Eugene > > -Original Message- > From: Ketan Patel [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 31, 2004 1:20 PM > To: CF-Talk > Subject: CFHEADER & CFCONTENT question > > Hi, > I have a intranet application where I am allowing people > to download > access > database. Following is the code I am using > > > > FILE="#application.filehttppathstring##location#" DELETEFILE="No"> > > My problem is when I want to save the file it gives me 2 > options Save as > HTML Document or All files. I don't want the option to > save as HTML > document. Is there any mime setting or any code change > need to be done. > > Any help is appreciated. Thanks in advance > > Ketan Patel > > > [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Any Possible Bugs in CFMX - ? (Was - CFHEADER & CFCONTENT question)
Anybody? - Original Message - From: Joe Eugene To: CF-Talk Sent: Wednesday, March 31, 2004 4:43 PM Subject: RE: Any Possible Bugs in CFMX - ? (Was - CFHEADER & CFCONTENT question) Is there a BUG using in CFMX? It throws all kinda Errors on Log Files when downloading files larger than 100K. Can anybody Explain the Workings behind Thanks, Joe Eugene -Original Message- From: Ketan Patel [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 31, 2004 1:20 PM To: CF-Talk Subject: CFHEADER & CFCONTENT question Hi, I have a intranet application where I am allowing people to download access database. Following is the code I am using FILE="#application.filehttppathstring##location#" DELETEFILE="No"> My problem is when I want to save the file it gives me 2 options Save as HTML Document or All files. I don't want the option to save as HTML document. Is there any mime setting or any code change need to be done. Any help is appreciated. Thanks in advance Ketan Patel [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Any Possible Bugs in CFMX - ? (Was - CFHEADER & CFCONTENT question)
Is there a BUG using in CFMX? It throws all kinda Errors on Log Files when downloading files larger than 100K. Can anybody Explain the Workings behind Thanks, Joe Eugene -Original Message- From: Ketan Patel [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 31, 2004 1:20 PM To: CF-Talk Subject: CFHEADER & CFCONTENT question Hi, I have a intranet application where I am allowing people to download access database. Following is the code I am using FILE="#application.filehttppathstring##location#" DELETEFILE="No"> My problem is when I want to save the file it gives me 2 options Save as HTML Document or All files. I don't want the option to save as HTML document. Is there any mime setting or any code change need to be done. Any help is appreciated. Thanks in advance Ketan Patel [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: CFHEADER & CFCONTENT question
What does the variable #filename# and #application.filehttppathstring# resolve to? I don't really want the real thing if security is an issue, just a dummy example. Ray http://www.crystalvision.org At 01:19 PM 3/31/2004, Ketan Patel wrote: >Hi, >I have a intranet application where I am allowing people to download access >database. Following is the code I am using > > > >FILE="#application.filehttppathstring##location#" DELETEFILE="No"> > >My problem is when I want to save the file it gives me 2 options Save as >HTML Document or All files. I don't want the option to save as HTML >document. Is there any mime setting or any code change need to be done. > >Any help is appreciated. Thanks in advance > >Ketan Patel > > > > [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
CFHEADER & CFCONTENT question
Hi, I have a intranet application where I am allowing people to download access database. Following is the code I am using FILE="#application.filehttppathstring##location#" DELETEFILE="No"> My problem is when I want to save the file it gives me 2 options Save as HTML Document or All files. I don't want the option to save as HTML document. Is there any mime setting or any code change need to be done. Any help is appreciated. Thanks in advance Ketan Patel [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re:CFFILE/CFCONTENT question.. Please help
Thank you Pascal and Michael for your help. I've got it working now. - cfcoder [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: CFFILE/CFCONTENT question.. Please help
This works for me deletefile="Yes"> Pascal > -Original Message- > From: cf coder [mailto:[EMAIL PROTECTED] > Sent: dinsdag 27 januari 2004 12:27 > To: CF-Talk > Subject: CFFILE/CFCONTENT question.. Please help > > Hello Everybody, > > I have this form with a a drop-down box and a submit button. > The drop down box displays a list of departments and has a > onChange event, that calls a _javascript_ function that reloads > the page. ColdFusion reads the querystring, passes it in a > cfquery select statement and displays the usernames and > fullnames associated with the dept from a sql table. > > I have been asked to also add a submit button which would > take the results returned from the query and export it to a > xls spreadsheet. > I have added the code, for some reason when it is submitted, > the File Download windows dialog box displays the wrong information > > File Name : Displays the name of the coldfusion file which > contains this code, when I want it to display the file name > given in the cffile FILE attribute. > File Type : empty, when I want it to display MSExcel > > Here is my code. Somebody please show me how to get round > this problem. > > report.cfm > > > <br> > function setDept() {<br> > if (document.the_form.deptselect.selectedIndex != 0) {<br> > <br> > myindex=document.the_form.deptselect.selectedIndex;<br> > <br> > location=document.the_form.deptselect.options[myindex].value;<br> > return true;<br> > }<br> > else<br> > {<br> > location.href="" an option";<br> > return true;<br> > }<br> > }<br> > function setFlag(){<br> > document.the_form.flag.value=1;<br> > return true;<br> > }<br> > > > > > method="post"> > > > > -select a > department > > url.dept EQ "Finance">selected>Finance > > url.dept EQ "HR">selected>HR > > url.dept EQ "Mgmt">selected>Mgmt > > > > > > > > > > > > > > select firstlastname, useremail from userdetails > where area like '%#url.dept#%' > > > > > class="arttext"> > Username > > > class="arttext"> > Email > > > > > > > class="arttext"> > #firstlastname# > > > class="arttext"> > #useremail# > > > > > > > & QUOTE & useremail & QUOTE> > > Replace(log_string,"#chr(34)#","#chr(34)##chr(34)#","All")> > > Replace(log_string,"#chr(127)#","#chr(34)#","All")> > > > FILE="\ExportToXLS.xls" > ADDNEWLINE="Yes" > OUTPUT="#log_string#"> > > > > > > > > VALUE="application/msexcel"> > > > FILE="\ExportToXLS.xls" deletefile="Yes"> > > > > > Best Regards, > cfcoder > > __ > Do you Yahoo!? > Yahoo! SiteBuilder - Free web site building tool. Try it! > http://webhosting.yahoo.com/ps/sb/ > [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: CFFILE/CFCONTENT question.. Please help
cfcoder ( I own that domain name :-) ), Try this... Notice the type attribute in the cfcontent tag... HTH, Mike -Original Message- From: cf coder [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 27, 2004 6:27 AM To: CF-Talk Subject: CFFILE/CFCONTENT question.. Please help deletefile="Yes"> __ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/ _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
CFFILE/CFCONTENT question.. Please help
Hello Everybody, I have this form with a a drop-down box and a submit button. The drop down box displays a list of departments and has a onChange event, that calls a _javascript_ function that reloads the page. ColdFusion reads the querystring, passes it in a cfquery select statement and displays the usernames and fullnames associated with the dept from a sql table. I have been asked to also add a submit button which would take the results returned from the query and export it to a xls spreadsheet. I have added the code, for some reason when it is submitted, the File Download windows dialog box displays the wrong information File Name : Displays the name of the coldfusion file which contains this code, when I want it to display the file name given in the cffile FILE attribute. File Type : empty, when I want it to display MSExcel Here is my code. Somebody please show me how to get round this problem. report.cfm
function setDept() {
if (document.the_form.deptselect.selectedIndex != 0)
{
myindex=document.the_form.deptselect.selectedIndex;
location=document.the_form.deptselect.options[myindex].value;
return true;
}
else
{
location.href="" an option";
return true;
}
}
function setFlag(){
document.the_form.flag.value=1;
return true;
}
method="post"> -select a department url.dept EQ "Finance">selected>Finance "HR">selected>HR EQ "Mgmt">selected>Mgmt select firstlastname, useremail from userdetails where area like '%#url.dept#%' class="arttext"> Username class="arttext"> Email class="arttext"> #firstlastname# class="arttext"> #useremail# "," & QUOTE & useremail & QUOTE> Replace(log_string,"#chr(34)#","#chr(34)##chr(34)#","All")> Replace(log_string,"#chr(127)#","#chr(34)#","All")> FILE="\ExportToXLS.xls" ADDNEWLINE="Yes" OUTPUT="#log_string#"> VALUE="application/msexcel"> FILE="\ExportToXLS.xls" deletefile="Yes"> Best Regards, cfcoder __ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: cfcontent question
Place the following line before your CFCONTENT tag and replace therealfilename with the name of your file... All will be well. value="attachment;filename=therealfilename"> Yours Paul Vernon http://www.web-architect.co.uk t: +44 (0)844 779 9797 m: +44 (0)7887 952591 f: +44 (0)844 779 9797 e: mailto:[EMAIL PROTECTED] The information contained in this e-mail and any attachment is intended only for the named addressee(s). If you are not the named addressee(s), please notify the sender immediately and do not disclose, copy or distribute the contents to any other person other than the intended addressee(s). [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
cfcontent question
Hey everyone, With CFCONTENT, my downloads are getting renamed? I've got a form submit (for a EULA) that goes to a page that uses CFCONTENT. 1. The user chooses the file from a list of links (filename is passed to the next page) 2. This page is the EULA form that has a hidden field for the filename. 3. Form submit button goes to a page that uses CFCONTENT to begin the download. Funny thing is, the process successfully carries the proper filename to the end, and the file dows download fine, but the name of the file gets changed to the name of the form action page. My files downloaded are all named coursematerials1.zip I'm using a zip file type: file="c:\protected\#form.filename#" > Anyone have any ideas why my downloads are getting renamed? [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: CFContent question....
Sorry this is a bit OT. Vance I tried to email you off the list, but your email returns an error message. In any event, I just wanted to ask what i2 was doing with CF? Intranet stuff? Won Lee Software Engineer, Allaire Certified ColdFusion Developer P: 212.609.1145, 212.652.9655 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 11, 2001 9:44 AM To: CF-Talk Subject: CFContent question I have searched the archive but can not seem to find the answer to this exact question... Did NT 4.0 SP 6a fix the problem with CFCONTENT? I know 6 broke it... but did 6a actually FIX it? Thanks. Vance Duke Cold Fusion Application Developer i2 Technologies (469) 357-4729 ~~ 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 question....
> Did NT 4.0 SP 6a fix the problem with CFCONTENT? I know 6 > broke it... but did 6a actually FIX it? No. The "problem" with SP6+ and CFCONTENT is that, on pre-SP 6 IIS servers, you could use a "fake" URL to tell the browser the file name of the downloaded file. Here's an example of this: http://www.figleaf.com/demo/mimetest/ This worked on those servers because of the way they parsed URLs - from left to right. They should never have parsed them that way in the first place. NT 4 SP 6 or higher, and Win2K, now parse URLs from right to left. If you want to use CFCONTENT to server non-HTML MIME types, and you want to specify a different file name, you can use the CFHEADER tag, as demonstrated at the above link. This works fine on SP 6+ or Win2K. 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 Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: CFContent question....
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 CFContent works fine in sp6a. You can't do the URL faking thing anymore, but that was a bug that was fixed & never should have worked in the first place. SP6 broke both CFContent and the URL thing. SP6a fixed CFContent, but not the URL thing. Since the two issues were very closely connected when 6 came out, there was a lot of confusion about what was broken in what release. As long as you don't do the URL fake thing, then SP6a is quite safe to upgrade for CF. FYI: Win2k (any SP) is the same deal -- CFContent is good, fake URLs are bad. Best regards, Zac Bedell > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 11, 2001 9:44 AM > To: CF-Talk > Subject: CFContent question > > > > I have searched the archive but can not seem to find the > answer to this > exact question... > > Did NT 4.0 SP 6a fix the problem with CFCONTENT? I know 6 > broke it... but > did 6a actually FIX it? > > Thanks. > > Vance Duke > Cold Fusion Application Developer > i2 Technologies > (469) 357-4729 > > > > ~~ 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
CFContent question....
I have searched the archive but can not seem to find the answer to this exact question... Did NT 4.0 SP 6a fix the problem with CFCONTENT? I know 6 broke it... but did 6a actually FIX it? Thanks. Vance Duke Cold Fusion Application Developer i2 Technologies (469) 357-4729 ~~ 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 question
I'm not using any MIME type that I know of. Should this be a part of the CFContent tag? >Since the .xls is opening client-side, Excel has to reside on the client (Excel on >the server is only applicable when you're creating .xls >files on the fly, using the >Excel com object). What MIME type are you using with CFContent? > >-- >Billy Cravens >[EMAIL PROTECTED] -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebarRsts&bodyRsts/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
Re: CFContent question
Since the .xls is opening client-side, Excel has to reside on the client (Excel on the server is only applicable when you're creating .xls files on the fly, using the Excel com object). What MIME type are you using with CFContent? -- Billy Cravens [EMAIL PROTECTED] Kathy Bergman wrote: > > I'm opening an existing Excel file using CFCONTENT. This works fine from the >wwwroot on my hard drive. But, when I post the page on the company server, and view >it, the web page loads but Excel does not execute. (I put the excel file in the same >folder) I now wonder if Exel.exe has to reside on the server. Does it? Is there a >way around this? I assumed if the user had Excel on their machine, they could view a >file opened with CFCONTENT. Now, I'm not sure that is correct. Will someone that >opens Excel and/or Word files from a web page please bring me up to speed on this? >Thanks! > > -- > Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ > To Unsubscribe visit >http://www.houseoffusion.com/index.cfm?sidebar=lists&body=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=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
CFContent question
I'm opening an existing Excel file using CFCONTENT. This works fine from the wwwroot on my hard drive. But, when I post the page on the company server, and view it, the web page loads but Excel does not execute. (I put the excel file in the same folder) I now wonder if Exel.exe has to reside on the server. Does it? Is there a way around this? I assumed if the user had Excel on their machine, they could view a file opened with CFCONTENT. Now, I'm not sure that is correct. Will someone that opens Excel and/or Word files from a web page please bring me up to speed on this? Thanks! -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebarRsts&bodyRsts/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: CFContent question
right now just application/msword -Original Message- From: Billy Cravens [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 28, 2000 6:33 PM To: [EMAIL PROTECTED] Subject: Re: CFContent question Depends alot on the mime-type. What are you using? -- Billy Cravens [EMAIL PROTECTED] Robyn Follen wrote: > Hi gang, > > When I use CFContent in IE, it opens my file (MSWord or otherwise) in my > browser. That is, it still _is_ MSWord, but it's within my IE5. In > Netscape, on the other hand, the same call to CFContent opens the actual > application on my computer instead of in the browser. Is there a way to get > my document to open in the actual application from IE? > > Here's how my code looks: > > FILE="#session.docpath#"> > > Any ideas would be appreciated. > > Robyn -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
Re: CFContent question
Depends alot on the mime-type. What are you using? -- Billy Cravens [EMAIL PROTECTED] Robyn Follen wrote: > Hi gang, > > When I use CFContent in IE, it opens my file (MSWord or otherwise) in my > browser. That is, it still _is_ MSWord, but it's within my IE5. In > Netscape, on the other hand, the same call to CFContent opens the actual > application on my computer instead of in the browser. Is there a way to get > my document to open in the actual application from IE? > > Here's how my code looks: > > FILE="#session.docpath#"> > > Any ideas would be appreciated. > > Robyn -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: CFContent question
This is a client configuration issue; I don't think you can do anything about it with CF code. -Original Message- From: Robyn Follen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 28, 2000 10:35 AM To: '[EMAIL PROTECTED]' Subject: CFContent question Hi gang, When I use CFContent in IE, it opens my file (MSWord or otherwise) in my browser. That is, it still _is_ MSWord, but it's within my IE5. In Netscape, on the other hand, the same call to CFContent opens the actual application on my computer instead of in the browser. Is there a way to get my document to open in the actual application from IE? Here's how my code looks: Any ideas would be appreciated. Robyn -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
CFContent question
Hi gang, When I use CFContent in IE, it opens my file (MSWord or otherwise) in my browser. That is, it still _is_ MSWord, but it's within my IE5. In Netscape, on the other hand, the same call to CFContent opens the actual application on my computer instead of in the browser. Is there a way to get my document to open in the actual application from IE? Here's how my code looks: Any ideas would be appreciated. Robyn -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.