SSL and CFContent 'Problem'

2004-04-05 Thread Charles McElwee
A web-app I inherited generates pdf's on the fly and delivers them to the
browser.The application contains reasonably robust security checking
within the application.cfm template.

However, seeing that the final pdf's were presented via a
parent.location.href="" statement, blatantly displayed in the
location bar, I felt this to be a serious security lapse - it would be easy
to bookmark the final pdf or possibly even guess other pdf names.

I reworked the app, removing web access from the pdf directory and using a
cfcontent tag to deliver the pdf, believing this increased security, by
incorporating the application.cfm security framework and it works fine.

The client decided to deploy SSL on the site and now, as the pdf is
delivered, the user is always greeted with the dialog 'This page contains
both secure and insecure content.Do you wish to display the insecure
content?'The client does not want to see this message.

Near as I can tell, this message is completely bogus in this context -
still, the only way I have found to remove it is to revert to the former
*insecure* code.

The app is running on NT and CF4.5 with little hopes of an upgrade soon.
I've seen a few postings here and there about similar problems.The ENTIRE
site uses SSL.

Is this a known bug?Any work-arounds?I've tried various hacks with
cfheader, cffile and cfoutput to no avail.Suggestions, please!

Thanks in advance.

Chuck McElwee
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




CFCONTENT Problem

2003-06-06 Thread John Ho
use this to upload you file 
cfcontent file = ../filename.doc
   type = application/msword
~|
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

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



CFCONTENT Problem

2003-06-05 Thread Michael Traher
You might be interested to take a look at a presentation made at the recent CFEurope 
conference on this very subject.

Give lots of examples and some tricks with CFCONTENT.

See link below.

http://www.cf-europe.org/preso/amanning/169406/index.html  
~|
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

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



CFCONTENT Problem

2003-06-05 Thread David Sampson
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

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



RE: CFCONTENT Problem

2003-06-05 Thread Larry Juncker
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

2003-06-05 Thread webguy
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



cfcontent problem

2003-03-07 Thread Phillip B
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.

~|
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

2003-03-07 Thread Todd
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

2003-03-07 Thread Phillip B
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

2003-03-07 Thread Todd
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

2003-03-07 Thread Phillip B
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

2003-03-07 Thread Dave Watts
 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

2003-03-07 Thread Phillip B
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



Obscure CFContent Problem

2003-01-17 Thread Steve Robison, Jr.
I am using cfcontent to throw documents to the browser from a non-web 
accessible directory.  I am using  cfheader as shown below to tell the 
browser what type of file it is.  So, it knows the file being downloaded is 
test.doc file instead of index.cfm.

cfheader name=content-disposition value=inline; 
filename=#attributes.filename#

All of this works for just about any file type except for the .dwf file 
format.  It is an Autocad file that stands for design web format.  It 
allows customers to view the drawings wiith a free Autocad program 
(Autodesk Express Viewer).

If the .dwf file is in the web directory, internet explorer opens it up 
properly.

If I try to open it with cfcontent, internet explorer displays a blank screen.

I'm assuming that this is because the Autodesk Express viewer disregards 
the header content-disposition.  Does any one have any idea on this?

Thanks,

Steve Robison, Jr.
[EMAIL PROTECTED]
Delaware.Net, Inc.

~|
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




cfcontent problem

2003-01-07 Thread stas
I am serving up PDFs with cfcontent, using:





~|
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



CFCONTENT Problem with PDF Files

2002-12-09 Thread Tim Haak
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]



RE: CFCONTENT Problem with PDF Files

2002-12-09 Thread Rob Rohan
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



CFCONTENT problem

2002-08-26 Thread Thane Sherrington

I'm trying to load a jpg file using the following line:

cfcontent type=image/jpeg 
file=http://www.stuffbythane.com/SiteTracker/placer.jpg; deletefile=No

But it won't load.  If I do this:

cfcontent type=image/jpeg 
file=c:\inetpub\wwwroot\SiteTracker/placer.jpg deletefile=No

It will load from my local copy.

How do I make it load from the server?

T

__
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 - Resolved

2002-08-26 Thread Thane Sherrington

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



CFContent problem

2002-05-10 Thread Thane Sherrington

I'm running the following test code:

!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN

html
head
 titleUntitled/title
/head


body


CFQUERY name=test datasource=#datasource#
 SELECT  *
 FROMCompanies
/CFQUERY
cfset tab=chr(9)
cfset carriage=chr(13)
CFHEADER NAME=Content-Disposition VALUE=inline; filename=Yourfilename.xls
CFCONTENT TYPE=application/msexcel Company Name
 CFOUTPUT QUERY=test
 #CompanyName##carriage#
 /CFOUTPUT
/CFCONTENT

/body
/html

And I'm getting this error:

Error Diagnostic Information
Context validation error in tag CFCONTENT

The tag is not correctly positioned relative to other tags in the template: 
tag CFCONTENT must have empty content. This means that there can be no tags 
or text or even whitespace characters between the CFCONTENT and 
/CFCONTENT markers.


What am I doing wrong?

T

__
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

2002-05-10 Thread Dave Watts

 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



CFCONTENT problem with Netscape 6.0

2001-12-05 Thread Bruce, Rodney (Contractor)

Hello all

I hope someone might have run into this and know a way around it.

This code works in I.E. 4.x+, and Netscape 4.5

But in Netscape 6.0 ,  the form and request scope vars are being dropped.

CFCONTENT
CFINCLUDE template=apage.cfm

the form.vars and request.vars are fine before the CFCONTENT but are lost
after and this is only  happening in Netscape 6.0.

Does anyone know how to work around this with out having to drop all the
vars into session.vars?

thanks for any help
Rodney

~~
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

2001-09-20 Thread Dave Watts

 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

2001-09-20 Thread Dave Watts

 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

2001-09-20 Thread Andrew Tyrone

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



CFContent problem - need urgent help

2001-09-19 Thread Shawn Grover

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.

~~
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



CFCONTENT Problem

2001-06-10 Thread Rich Z

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

2001-06-10 Thread Duane Boudreau


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

2001-06-10 Thread Dain Anderson

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

2001-06-10 Thread Rich Z

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

2001-06-10 Thread Duane Boudreau

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

2001-06-10 Thread Rich Z

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



Weird CFCONTENT problem with WinProxy

2000-08-08 Thread Eron Cohen

Hi Folks,

Does anyone know of any issues with using CFCONTENT to display images for
clients browsing through WINproxy?

I am using CFCONTENT to display .gif files (banner ads).  It works fine when
I am not behind a WinProxy server, but when I am the images just don't
display.  I have even tried using the same machine with and without
WinProxy...it always works fine when WinProxy is not involved.  We've tried
clearing caches, etc...but haven't had any success.

Thanks for any ideas,

Eron

Here is the CFCONTENT statement (in a file called
banner_get_for_display.cfm):

CFCONTENT TYPE="image/gif" FILE="#actual_location#\#IMAGE_TO_DISPLAY#"

Here is how I call it when I am displaying a banner:

IMG SRC="http://www.myserver.com/banner_get_for_display.cfm?campaign_id=3"


--
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.



CFContent Problem.........

2000-07-12 Thread Russel Madere

When I try to use CFContent to serve up an install program from an FTP 
directory through a web browser.  If I just give an anchor to the URL, it 
works fine.  However, the project manager wants the option of starting the 
file download via HTTP when the user goes to a particular page.  The file 
is in a folder accessible to the webserver, the user IUSR_MACHINENAME 
(changed for security) has read access to the folder, and the server set up 
to allow CFCONTENT.

However, when I try to access the file, I get "An error occurred while 
attempting to open the file. ... Windows NT error number 5" in the error 
message.  It is only visible when I look at the RAW HTTP results.  When it 
is opened in the web browser, this error isn't visible.

I tried to do a NET HELPMSG ERRORNUMBER 5 in the command prompt, but the 
results were absolutely useless.

If anyone can help, I would be appreciative.

Russel

--
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.



RE: CFCONTENT problem

2000-03-29 Thread Dave Watts

 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.