Re: cfheader - thanks

2014-02-11 Thread Sebastiaan Naafs - van Dijk
Better yet, make it unobtrusive by using rel=external in the A-tag. the needed JS: $(document).ready(function(){ $(a[rel=external]).each(function(){ this.target=_blank; }); }); Sebastiaan Naafs - van Dijk http://onlinebase.nl/ On 02/10/2014 04:12 PM, Rob Voyle wrote: Thanks

cfheader

2014-02-10 Thread Rob Voyle
Hi folks I am using cfheader name=Content-disposition value=inline;filename=#handout# cfcontent type=application/pdf file=#handoutfile# deleteFile = no to display a pdf and it works fine, but I would like to open it in a new window Is there a way to open the pdf in a new browser window

Re: cfheader

2014-02-10 Thread Steve Milburn
Why not put target=_blank in the a tag on the page that is linked to the pdf? Steve On Mon, Feb 10, 2014 at 9:56 AM, Rob Voyle robvo...@voyle.com wrote: Hi folks I am using cfheader name=Content-disposition value=inline;filename=#handout# cfcontent type=application/pdf file

Re: cfheader - thanks

2014-02-10 Thread Rob Voyle
Thanks Steve - so simple! On 10 Feb 2014 at 10:02, Steve Milburn wrote: Why not put target=_blank in the a tag on the page that is linked to the pdf? Steve ~| Order the Adobe Coldfusion Anthology now!

Re: trouble with cfheader/cfcontent

2013-06-19 Thread Dave Watts
I'm attempting to use cfheader/cfcontent to allow our users to download files and programs from our site. With *.exe files it is copying the file name correctly but the size does not match to the original file size. For example, the site has a file named WG.exe with a size of 1587KB

trouble with cfheader/cfcontent

2013-06-18 Thread Randy Robinson
I'm attempting to use cfheader/cfcontent to allow our users to download files and programs from our site. With *.exe files it is copying the file name correctly but the size does not match to the original file size. For example, the site has a file named WG.exe with a size of 1587KB

Re: trouble with cfheader/cfcontent

2013-06-18 Thread Dean Lawrence
Randy, This is more than likely your web server restricting the downloading of .exe files and not ColdFusion. Check with your server config. On Tue, Jun 18, 2013 at 4:13 PM, Randy Robinson rlrobin...@sartellgroup.com wrote: I'm attempting to use cfheader/cfcontent to allow our users

Read / Serve a file with CFHEADER

2012-11-09 Thread Robert Harrison
Since I can't password protect a zip file I need to protect, I'm trying a different approach. I build the file, read the content with CFFILE (this works), delete the file, then try to server it out with CFHEADER. When I have a physical file CFHEADER serves it fine, but when I try to serve

Re: Read / Serve a file with CFHEADER

2012-11-09 Thread Dave Watts
When I have a physical file CFHEADER serves it fine, but when I try to serve it from the CFFILE READ variable it don't serve. Any idea what I'm doing wrong? cfset getfile=mypath\myfile.zip cfset file_size=getFileInfo(getfile).size cffile action=read file=#getfile

RE: Read / Serve a file with CFHEADER

2012-11-09 Thread Robert Harrison
=#application.rootpath#\admin\custom1\tempfiles\#to_purge.name# /cfloop cfheader name=Content-Disposition value=attachment;filename=#file_name#.zip cfheader name=Content-Length value=#file_size# cfcontent type=application/zip variable=#serve_file# cfheader name

RE: CFHeader Problem

2012-06-27 Thread Robert Harrison
...@figleaf.com] Sent: Tuesday, June 26, 2012 10:27 PM To: cf-talk Subject: Re: CFHeader Problem What's wrong with the below?        cfheader name=Content-Disposition value=attachment; filename=myfile.zip        cfcontent type=application/zip file=d:\inetpub\wwwroot\thedirectory\myfile.zip

CFHeader Problem

2012-06-26 Thread Robert Harrison
What's wrong with the below? cfheader name=Content-Disposition value=attachment; filename=myfile.zip cfcontent type=application/zip file=d:\inetpub\wwwroot\thedirectory\myfile.zip The file is there and the path is correct. I can download the file directly by typing in http

Re: CFHeader Problem

2012-06-26 Thread Claude Schnéegans
What's wrong with the below? Don't you need RESET=yes inside the CFCONTENT tag? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive:

RE: CFHeader Problem

2012-06-26 Thread Robert Harrison
: http://www.austin-williams.com/blog Twitter: http://www.twitter.com/austin_williams -Original Message- From: Sent: Tuesday, June 26, 2012 11:04 AM To: cf-talk Subject: Re: CFHeader Problem What's wrong with the below? Don't you need RESET=yes inside the CFCONTENT tag

RE: CFHeader Problem: SOLVED (sort of)

2012-06-26 Thread Robert Harrison
Apparently the problem with cfheader is a file size issue. As of CF9, it seems to load the entire file into memory before downloading it, so if the file is too large you get the out of memory. Apparently this was not a problem in previous CF Releases, which explains why this used to work

RE: CFHeader Problem: SOLVED (sort of)

2012-06-26 Thread Russ Michaels
I believe you can get round this by using a but of java code instead of cfheader. It has more than likely been documented on this list before as well as blogs. Regards Russ Michaels On Jun 26, 2012 5:41 PM, Robert Harrison rob...@austin-williams.com wrote: Apparently the problem with cfheader

Re: CFHeader Problem

2012-06-26 Thread Dave Watts
What's wrong with the below?        cfheader name=Content-Disposition value=attachment; filename=myfile.zip        cfcontent type=application/zip file=d:\inetpub\wwwroot\thedirectory\myfile.zip The file is there and the path is correct. I can download the file directly by typing

Re: CFHeader Problem

2012-06-26 Thread Bobby
: Tuesday, June 26, 2012 11:04 AM To: cf-talk Subject: Re: CFHeader Problem What's wrong with the below? Don't you need RESET=yes inside the CFCONTENT tag? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com

Re: CFHeader Problem

2012-06-26 Thread Bobby
://www.austin-williams.com Blog: http://www.austin-williams.com/blog Twitter: http://www.twitter.com/austin_williams -Original Message- From: Sent: Tuesday, June 26, 2012 11:04 AM To: cf-talk Subject: Re: CFHeader Problem What's wrong with the below? Don't you need RESET=yes inside

problem using cfheader to create csv file from query

2012-05-24 Thread Christophe Maso
I'm running into a problem using cfheader, and wondering if there's a workaround. What's happening is this: I have a form page, and onSubmit of the form, a js validation function is called. This performs a number of tasks in addition to validation, and during its execution it looks

RE: Difference between cfcontent and cfheader in terms its usage?

2012-02-16 Thread Bobby Hartsfield
as the names suggest, cfheader is for creating HTTP response headers and cfcontent is for sending mime encoded content (generally that of a file). cfcontent can set the mime content header but it's the only header it sets. http://cfdocs.org/cfheader http://cfdocs.org/cfcontent

Difference between cfcontent and cfheader in terms its usage?

2012-02-15 Thread Jay Pandya
Difference between cfcontent and cfheader in terms its usage? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com

Re: Difference between cfcontent and cfheader in terms its usage?

2012-02-15 Thread Justin Scott
Difference between cfcontent and cfheader in terms its usage? Generally, cfcontent is used to serve up a file from the server through ColdFusion (could be a generated PDF document, tracking image, or any other file you want to have ColdFusion serve up for you through the code). You can also

Re: cfheader Content-Range

2012-01-12 Thread Chad Baloga
(variables.range,-)/ cfset variables.rangeLength = variables.max - variables.min + 1/ cfheader statuscode=206 statustext=Partial Content cfheader name=Accept-Ranges value=bytes cfheader name=Content-Range value=bytes #variables.range#/#getFileSize.size

Re: cfheader Content-Range

2012-01-12 Thread Dave Watts
I have come up with a solution but it is not working 100%.  It seems like the Content-Range header is not working.  I return the correct Content-Length, but it always starts at the beginning of the file.  See code below... ... cfcontent type=application/octet-stream file=#decryptedDoc#

Re: cfheader Content-Range

2012-01-12 Thread Chad Baloga
CF isn't going to know anything about your range headers. It's just going to serve the file. If you wanted to serve part of the file, you'd have to read it into memory and serve the slice that you want to serve. Using cffile read? Is 1 character considered to be a byte?

Re: cfheader Content-Range

2012-01-12 Thread Dave Watts
Using cffile read? Is 1 character considered to be a byte? Usually, a character is one byte in size, but you can use the READBINARY action value instead, and use ToBase64 to serve it. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is

cfheader Content-Range

2012-01-04 Thread Chad Baloga
Does anyone know how to get Content-Range returned as a header response when the request has Range: bytes=in it? I added cfheader name=Accept-Ranges value=bytes but do not get the Content-Range back. ~| Order the Adobe

Re: cfheader Content-Range

2012-01-04 Thread Dave Watts
Does anyone know how to get Content-Range returned as a header response when the request has Range: bytes=   in it?  I added cfheader name=Accept-Ranges value=bytes but do not get the Content-Range back. CF, like most application servers in my experience, will not honor things like

RE: cfheader filename

2011-05-27 Thread UXB
Is there a way to serve content via a .cfm file... cfheader name=Content-Disposition value=inline; filename=#article.filename# cfcontent type=#article.mime_type# file=#article.link# / If you click Save As it want's to save it as serve.cfm.htm We always force a download by setting

cfheader filename

2011-05-26 Thread Greg Morphis
Is there a way to serve content via a .cfm file and if the user right clicks and chooses Save As it would save the file as the filename attribute and not the name of the CF file serving the content? For example.. serve.cfm cfheader name=Content-Disposition value=inline; filename

Re: cfheader and foreign characters [spamtrap bayes][spamtrap heur]

2011-02-23 Thread Paul Hastings
On 2/23/2011 4:42 AM, Richard Steele wrote: cfset xOutput = République uh, is this text actually utf-8 (ie what editor, etc did you use to create this page)? because your code works fine (well with cfoutput added) from cfbuilder.

Re: cfheader and foreign characters

2011-02-23 Thread Jochem van Dieten
On Tue, Feb 22, 2011 at 10:42 PM, Richard Steele wrote: I'm trying to save a text file that has foreign characters. If you want to instruct the browser to save a file instead of trying to render it to the user, you need to set a content disposition in combination with a MIME type of

Re: cfheader and foreign characters

2011-02-23 Thread Claude Schnéegans
I'm trying to save a text file that has foreign characters. You simply cannot specify a charset in a plain .txt file. A text file is simply a string of characters in ASCII. Unlike an HTML page, it does not contain any header to specify a character set. If it contains special characters above

Re: cfheader and foreign characters [spamtrap bayes][spamtrap heur]

2011-02-23 Thread Paul Hastings
On 2/23/2011 9:12 PM, =?ISO-8859-1?Q?Claude_Schn=E9egans wrote: If it contains special characters above 127, they will be interpreted in the default character set of the operating system. unless there's a BOM. For instance under Windows, il will probably be Window 1252 equivalent to ISO

Re: cfheader and foreign characters [spamtrap bayes][spamtrap heur]

2011-02-23 Thread Claude Schnéegans
no, these are not equivalent. windows 1252 is a superset of iso-8859-1. I meant equivalent in the general meaning not quite identical. if a text editor/cf is told or can guess the encoding it will read it successfully. This is the point. The text editor can be told by the file in which

Re: cfheader and foreign characters [spamtrap bayes][spamtrap heur]

2011-02-23 Thread Claude Schnéegans
in which format it is the file is in some proprietary format ... oops, I mean in which format the file is if it is in some proprietary format... ~| Order the Adobe Coldfusion Anthology now!

Re: cfheader and foreign characters

2011-02-23 Thread Paul Hastings
On 2/23/2011 10:42 PM, =?ISO-8859-1?Q?Claude_Schn=E9egans wrote: will assume when it opens the file. There are no ways this can be decided by the application which creates the file. it can guess in the presence of a BOM it can guess fairly accurately.

Re: cfheader and foreign characters

2011-02-23 Thread Claude Schnéegans
in the presence of a BOM it can guess fairly accurately. for editors which recognize BOMs, probably, but this suppose a Unicode aware editor. ~| Order the Adobe Coldfusion Anthology now!

Re: cfheader and foreign characters [spamtrap bayes][spamtrap heur]

2011-02-23 Thread Paul Hastings
On 2/24/2011 1:48 AM, =?ISO-8859-1?Q?Claude_Schn=E9egans wrote: for editors which recognize BOMs, probably, but this suppose a Unicode aware editor. even notepad is unicode aware. these days only Luddites refuse unicode as default.

cfheader and foreign characters

2011-02-22 Thread Richard Steele
I'm trying to save a text file that has foreign characters. Here's my code: cfset xOutput = République cfheader charset=utf-8 name=content-disposition value=attachment; filename=test.txt #xOutput# When I open this file up it looks like this: R√©publique How can I retain the proper

Re: cfheader and foreign characters

2011-02-22 Thread Leigh
Are you supplying a content type too text/plain, text/html? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive:

Re: cfheader and foreign characters

2011-02-22 Thread Alan Rother
Do this cfprocessingdirective pageencoding=utf-8 cfset xOutput = République cfcontent type=text/html; utf-8 cfheader charset=utf-8 name=content-disposition value=attachment; filename=test.txt cfoutput#xOutput#/cfoutput On Tue, Feb 22, 2011 at 3:00 PM, Leigh cfsearch...@yahoo.com wrote

Re: cfheader and foreign characters

2011-02-22 Thread Richard Steele
I tried this: cfheader charset=utf-8 name=content-disposition value=attachment; filename=#xFileName# cfcontent type = text/html; charset=utf-8 reset=true variable=#ToBinary( ToBase64(xOutput) )# / Still no foreign characters

Re: cfheader and foreign characters

2011-02-22 Thread Richard Steele
Hi Alan, closer, but now I get R?publique. Any other ideas would be greatly appreciated. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive:

Re: cfheader and foreign characters

2011-02-22 Thread Leigh
Should work fine with just a plain vanilla cfcontent / cfoutput cfheader charset=utf-8 name=content-disposition / cfcontent type=text/html / cfoutput#xOutput#/cfoutput ~| Order the Adobe Coldfusion Anthology

Re: cfheader and foreign characters

2011-02-22 Thread Alan Rother
That odd, it totally worked for me... http://alan.rotherfamily.net/demos/utf8/ cfprocessingdirective pageencoding=utf-8 cfset xOutput = République cfcontent type=text/plain; utf-8 cfheader charset=utf-8 name=content-disposition value=attachment; filename=test.txt cfoutput#xOutput#/cfoutput

Re: cfheader and foreign characters

2011-02-22 Thread Richard Steele
No, I get this: R?publique ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive:

Re: cfheader and foreign characters

2011-02-22 Thread Richard Steele
That odd, it totally worked for me... http://alan.rotherfamily.net/demos/utf8/ cfprocessingdirective pageencoding=utf-8 cfset xOutput = République I get RÈpublique when I click your link. not République. ~| Order the Adobe

Re: cfheader and foreign characters

2011-02-22 Thread Alan Rother
What kind of computer (OS) are you on and what browser are you using? I just want to Apples to Apples this... This should be really simple... Oh and what program is the browser opening the text file in. Leigh (as always) is right, this should just work On Tue, Feb 22, 2011 at 5:07 PM, Richard

Re: cfheader and foreign characters

2011-02-22 Thread Richard Steele
That's totally it. Apple Chrome, Safari and Firefox show RÈpublique when I click your link. IE 8 and Firefox PC show République. It shows it this in both Word 2011 and Text Edit on the Mac. Plain text endcoding is set to Automatic for Plain Text in Text Edit and utf-8 for html documents.

Re: cfheader and foreign characters

2011-02-22 Thread Michael Grant
FWIW: I get RÈpublique. Mac OSX Leopard. Chrome 9.0.597 (not that this should matter since it's a d.l. not an open in the browser. Also checked FF 3.316 with same result. On Tue, Feb 22, 2011 at 7:20 PM, Alan Rother alan.rot...@gmail.com wrote: What kind of computer (OS) are you on and

Re: cfheader and foreign characters

2011-02-22 Thread Michael Grant
TextEdit 1.6 shows RÈpublique Word:MAC 2011 v14.02 shows: RΘpublique On Tue, Feb 22, 2011 at 7:27 PM, Richard Steele r...@photoeye.com wrote: That's totally it. Apple Chrome, Safari and Firefox show RÈpublique when I click your link. IE 8 and Firefox PC show République. It shows it

Re: cfheader and foreign characters

2011-02-22 Thread Richard Steele
Meant to say Firefox for the PC. Thanks again. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive:

CFHEADER on Chrome to download an Excel CSV / Mime Type problem

2010-12-06 Thread Brook Davies
I've been using the following code for years with no problems on IE,FF,Safari to force the download of a CSV file that will be associated with and opened by Excel: cfheader name=Content-Disposition value=attachment;filename=myExport.csv charset=utf-8 cfcontent type=application/vnd.Microsoft

Re: CFHEADER on Chrome to download an Excel CSV / Mime Type problem

2010-12-06 Thread Rick Root
with and opened by Excel: cfheader name=Content-Disposition value=attachment;filename=myExport.csv charset=utf-8 cfcontent type=application/vnd.Microsoft Excel Comma Seperated Values File; charset=utf-8 However, this code in Chrome results in the actual template filename being used without any

RE: CFHEADER on Chrome to download an Excel CSV / Mime Type problem

2010-12-06 Thread Brook Davies
That works in every other browser (that I tested..) except Chrome. Chrome just downloads the CFM template... -Original Message- From: Rick Root [mailto:rick.r...@gmail.com] Sent: December-06-10 10:50 AM To: cf-talk Subject: Re: CFHEADER on Chrome to download an Excel CSV / Mime Type

RE: CFHEADER on Chrome to download an Excel CSV / Mime Type problem FIXED

2010-12-06 Thread Brook Davies
We fixed it! Turned out to be a missing quote around the filename, this works: cfheader name=Content-Disposition value=attachment;filename=#filename# charset=utf-8 Brook -Original Message- From: Rick Root [mailto:rick.r...@gmail.com] Sent: December-06-10 10:50 AM To: cf-talk Subject

CF8 cfcookie vs cfheader set-cookie

2010-11-22 Thread Jawad Shaik Mohammed
cfcookie does not support httponly flag (CF9 does), I used cfheader to set the cookie in the custom tag and here is what I found. When you use the cfcookie tag to set the cookie, coldfusion populates the cookie struct right away. But if you use cfheader instead to set the cookie, I believe

RE: cfheader/cfheader not working as expected

2010-11-10 Thread DURETTE, STEVEN J (ATTASIAIT)
I don't remember if you posted any code, but I get by this with the following: cfset Variables.contVal = inline;filename=#Variables.myFileName# / cfheader value=#Variables.contVal# name=content-disposition cfcontent type=#Variables.myType# reset=Yes variable=#Variables.mySpreadsheetVar# Before

Re: cfheader/cfheader not working as expected

2010-11-09 Thread Robert Gallagher
On 11/8/2010 9:55 AM, Robert Gallagher wrote: Using attachment forces the user to make a selection on a dialog box and I wanted to bypass that dialog box and have the file open every time. You do not get to make that choice. It is *MY* computer and *MY* browser and *I* get to say

Re: cfheader/cfheader not working as expected

2010-11-09 Thread Dave Watts
Let me refine this a little more.  IE6 (the company browser) treats inline versus attachment slightly different as far as the Open/Save dialog box is concerned.  Attachment *FORCES* the user to always choose open or save.  Inline allows the user to permanently select Open for example, but

Re: cfheader/cfheader not working as expected

2010-11-09 Thread Robert Gallagher
I truly understand what you're saying but how these things work it not consistent which is frustrating. What's really crazy is we have dozens of Excel download links in our various apps like this example and some work perfectly with value=inline but most have the undesirable behavior (code

Re: cfheader/cfheader not working as expected

2010-11-08 Thread Robert Gallagher
cfheader name=Content-Disposition value=*inline*;filename=download. xls / Change inline to attachment so that the browser knows this is a separate, attached file to view OR download AND NOT an inline part of the currently viewed file: test.cfm. Using attachment forces the user to make

Re: cfheader/cfheader not working as expected

2010-11-08 Thread Dave Watts
Using attachment forces the user to make a selection on a dialog box and I wanted to bypass that dialog box and have the file open every time. For obvious security reasons, you generally can't make things happen on a client's machine from the web server. You can provide suggestions to the

Re: cfheader/cfheader not working as expected

2010-11-08 Thread Ian Skinner
On 11/8/2010 9:55 AM, Robert Gallagher wrote: Using attachment forces the user to make a selection on a dialog box and I wanted to bypass that dialog box and have the file open every time. You do not get to make that choice. It is *MY* computer and *MY* browser and *I* get to say what

Re: cfheader/cfheader not working as expected

2010-11-08 Thread Michael Grant
You don't get such a granular level of control in the web environment, only in the desktop arena. On Mon, Nov 8, 2010 at 12:55 PM, Robert Gallagher robert.gallag...@honeywell.com wrote: cfheader name=Content-Disposition value=*inline*;filename=download. xls / Change inline

cfheader/cfheader not working as expected

2010-11-05 Thread Robert Gallagher
I want to do simple download of a web page to Excel. I am using CF7, browser is IE6SP2 and Excel 2007. The single standalone file is test.cfm. Here is the code: cfheader name=Content-Disposition value=inline;filename=download.xls / cfcontent type=application/vnd.ms-excel / table tr

Re: cfheader/cfheader not working as expected

2010-11-05 Thread Ian Skinner
cfheader name=Content-Disposition value=*inline*;filename=download.xls / Change inline to attachment so that the browser knows this is a separate, attached file to view OR download AND NOT an inline part of the currently viewed file: test.cfm

cfheader and pushing a file to the user

2010-10-18 Thread Les Mizzell
. So, after the query runs: CFHEADER NAME=content-disposition value=attachment; filename=#get.logo# Looks correct so far... But, let's say I selected a jpg. The dialog comes up (SAVE or OPEN), I select SAVE, and when I try to open the file in Photoshop I get an error Could

Re: cfheader and pushing a file to the user

2010-10-18 Thread Dave Watts
problems. So, after the query runs: CFHEADER    NAME=content-disposition    value=attachment;    filename=#get.logo# Looks correct so far... But, let's say I selected a jpg. The dialog comes up (SAVE or OPEN), I select SAVE, and when I try to open the file in Photoshop I get an error Could

Re: cfheader and pushing a file to the user

2010-10-18 Thread Michael Grant
cfheader name=Content-Disposition value=attachment; filename=#YourFile.FileName# cfcontent type=image/jpg file=#YourDirectory#\#YourFile.FileName# On Mon, Oct 18, 2010 at 4:48 PM, Les Mizzell lesm...@bellsouth.net wrote: I've got a section of a site where a user can access a number of logo

Re: cfheader and pushing a file to the user

2010-10-18 Thread Les Mizzell
On 10/18/2010 7:53 PM, Michael Grant wrote: cfheader name=Content-Disposition value=attachment; filename=#YourFile.FileName# cfcontent type=image/jpg file=#YourDirectory#\#YourFile.FileName# I had that actually - not using the type though as there's a number of different file types

cfheader/cfcontent/IIS/SSL/IE resolved all by itself

2010-05-31 Thread Andrew Clarke
: cfheader name=Content-Disposition value=attachment; filename=test. doc cfcontent type=application/unknown file=c:\sites\test.doc I've tried using inline instead of attachment, and being more specific with the content type (i.e. application/msword) but nothing I'm doing is helping this work

Issue with cfcontent,cfheader and SSL and IE

2009-11-05 Thread Asaf Peleg
an example of the cfcontent/cfheader example below. Does anyone know a work around for this issue? CFCONTENT TYPE=application/msexcel reset=yes cfheader NAME=Content-Disposition VALUE=attachment; filename=TimberlineRprt_#DateFormat(month,'mm_yy')#.csv Thanks, Asaf

cfheader to create post data.

2009-05-07 Thread Ian Skinner
Can one create post data with cfheader? If so, what might the syntax look like? ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk

Re: cfheader to create post data.

2009-05-07 Thread Steven Erat - Webapper Services
CFHEADER amends the headers of the server response. Post data would be part of client request instead. For CF to make a client request you'd have to use CFHTTP type Post, and use CFHTTPPARAM to send the post data, i.e. type=file. On Thu, May 7, 2009 at 9:26 AM, Ian Skinner h...@ilsweb.com

CFHeader - appending date to xls file name

2009-03-25 Thread cfcom
I want to add the DATE to my file name in cfheader but it did not work. Any suggestions cfcontent type=application/msexcel cfquery datasource=dsn name=foobar SELECT * FROM blasts ORDER BY memberid /cfquery cfset TheDate = Now() cfheader name=Content-Disposition value=filename

Solved:---- CFHeader - appending date to xls file name

2009-03-25 Thread cfcom
Thanks all solved! ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive:

Re: CFHeader - appending date to xls file name

2009-03-25 Thread Dave Watts
cfheader name=Content-Disposition value=filename=ResolveIT_Listcfoutput#Now()#/cfoutput.xls table cfoutput query=foobar  tr  td#FirstName#/td  td#LastName#/td  td#Email#/td  td#Address1#/td  td#City#/td  td#State#/td  td#Zip#/td  /tr /cfoutput cfheader name=Content-Disposition

CFHEADER

2007-11-19 Thread Naveen Krishnamurthy
Hi, I am using the following code to open / download text files cfheader name=Content-Length value=FILEFIZE cfheader name=Content-Type value=application/octet-stream cfheader name=Content-Disposition value=attachment;filename=FILENAME cfheader name=Content-Location value=#URLEncodedFormat

Re: CFHEADER

2007-11-19 Thread Claude Schneegans
cfheader name=Content-Disposition value=attachment;filename=FILENAME Shouldn't be filename=#FILENAME# ? Surprising it works with Firefox and IE 7. -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send

Re: cfheader filename problem

2007-07-19 Thread James Holmes
: cfheader name=Content-Disposition value=attachment;filename='#fileName#' .. Ben Nadel Certified Advanced ColdFusion MX7 Developer www.bennadel.com Need ColdFusion Help? www.bennadel.com/ask-ben/ -Original Message- From: Dave Francis [mailto:[EMAIL PROTECTED

RE: cfheader filename problem

2007-07-19 Thread Dave Francis
Duh! Thanks Ben. You know it's really Bobby's job to make me feel stupid :) -Original Message- From: Ben Nadel [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 18, 2007 4:52 PM To: CF-Talk Subject: RE: cfheader filename problem Try wrapping the filename in single quotes: cfheader name

cfheader filename problem

2007-07-18 Thread Dave Francis
Hi, I'm trying to download files with this: cfheader name=Content-Disposition value=attachment;filename=#fileName# cfcontent FILE=#file# TYPE=#MimeType# Whenever the filename contains spaces, the What do you want to do with this file prompt truncates the filename

RE: cfheader filename problem

2007-07-18 Thread Ben Nadel
Try wrapping the filename in single quotes: cfheader name=Content-Disposition value=attachment;filename='#fileName#' .. Ben Nadel Certified Advanced ColdFusion MX7 Developer www.bennadel.com Need ColdFusion Help? www.bennadel.com/ask-ben/ -Original Message- From

Re: cfheader filename problem

2007-07-18 Thread Randy Johnson
Dave, I am not totally sure here but I think replacing it with %20 would be the only way to keep it from truncating. I think the truncating is happening on the browser side. -Randy Dave Francis wrote: Hi, I'm trying to download files with this: cfheader name=Content

cfheader set-cookie expires

2007-06-29 Thread Steve Moseley
I've used the following: cfset dExpiryDate = CreateODBCDateTime(DateAdd(d,1,Now())) cfheader name=Set-Cookie value='CSUser=username=abe[EMAIL PROTECTED];expires=#GetHttpTimeString(dExpiryDate)#; domain=.bla.org' But when this cookie is read by ASPX .NET 2.0 the expires is: 1/1/0001 12

Re: Preventing cache in IE with cfheader

2007-05-03 Thread Christophe Maso
Instead of messing with HTTP headers, just append a random variable to the image URL: img src=image.gif?638232 / Jochem Thanks! Works perfectly. The developer I work with points out that sometimes you might want the image cached unless it has been updated, and the solution to that is

Preventing cache in IE with cfheader

2007-05-02 Thread Christophe Maso
). The file uploads, but the browser is still caching; the refreshed page still shows the old image file. In order to prevent browser caching of image files, I've used cfheader name=Expires value=#GetHttpTimeString(Now())#, and also added cfheader name=Pragma value=no-cache cfheader name=cache

Re: Preventing cache in IE with cfheader

2007-05-02 Thread Christophe Maso
refreshes). The file uploads, but the browser is still caching; the refreshed page still shows the old image file. In order to prevent browser caching of image files, I've used cfheader name=Expires value=#GetHttpTimeString(Now())#, and also added cfheader name=Pragma value=no-cache

Re: Preventing cache in IE with cfheader

2007-05-02 Thread Jochem van Dieten
Christophe Maso wrote: I'm having trouble getting IE not to cache image files on a particular page. I have a page where image files can be uploaded and overwrite existing files (similar to a Myspace type page that displays your picture; you can upload another gif or jpg via form field,

Re: Preventing cache in IE with cfheader

2007-05-02 Thread Casey Dougall
On 5/2/07, Jochem van Dieten [EMAIL PROTECTED] wrote: Instead of messing with HTTP headers, just append a random variable to the image URL: img src=image.gif?638232 / Jochem Yup... Same thing you gotta do with XML content in IE -- Casey

CFHeader No Cache Sanity Check

2007-01-10 Thread Mark Leder
# / meta http-equiv=imagetoolbar content=#ARGUMENTS.contentHeadImageToolbar# / cfheader name=cache-control value=no-cache, no-store, must-revalidate / cfheader name=cache-control value=post-check=0, pre-check=0 / cfheader name=expires value=Mon, 26 Jul 1997 05:00:00 GMT / cfheader name

Re: CFHeader No Cache Sanity Check

2007-01-10 Thread James Holmes
Is there a reason to set http-equiv meta tags when you are setting the actual headers already? On 1/11/07, Mark Leder [EMAIL PROTECTED] wrote: I don't know if its just me or the code I've used for a while, but seems like since the first of this year (or thereabouts) IE (6 or 7) seems to ignore

RE: CFHeader No Cache Sanity Check

2007-01-10 Thread Mark Leder
Don't know. If they are of equal value I suppose one or more should be deleted. But which one(s)? -Original Message- From: James Holmes [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 10, 2007 5:43 PM To: CF-Talk Subject: Re: CFHeader No Cache Sanity Check Is there a reason to set

Re: CFHeader No Cache Sanity Check

2007-01-10 Thread James Holmes
, 2007 5:43 PM To: CF-Talk Subject: Re: CFHeader No Cache Sanity Check Is there a reason to set http-equiv meta tags when you are setting the actual headers already? ~| Create robust enterprise, web RIAs. Upgrade

RE: CFHeader No Cache Sanity Check

2007-01-10 Thread Dave Watts
Is there a reason to set http-equiv meta tags when you are setting the actual headers already? Yes. Some (arguably broken) proxies may disregard HTTP response headers. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized

Re: CFCONTENT and CFHEADER to download a file on CF 5

2006-08-29 Thread jim collins
How To Raise a File Download Dialog Box for a Known MIME Type http://support.microsoft.com/default.aspx?scid=kb;EN-US;q260519 cfheader name=Content-Type value=application/powerpoint cfheader name=Content-Disposition value=attachment; filename=test.ppt Try that. I've got a .mht (multipart html

CFCONTENT and CFHEADER to download a file on CF 5

2006-08-18 Thread Burns, John D
a cfcontent and cfheader to the top of the page to try to get it to force the filename to go back to the browser as a ppt so they can save it or open it. The code works fine on MX 6.1 but I can't get it to work on CF5. Anyone have any gotchas or reasons why I can't do it? Snippet: cfheader name

  1   2   3   >