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
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:
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
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
: 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
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
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
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
, 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
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
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
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)
: 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
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
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:
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
: 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
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
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:
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)
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
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
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
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
) 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
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
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
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
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
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
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
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
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
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
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
35 matches
Mail list logo