Okay, this is not a fusebox question, but <cf_butterup>the knowledge and experience
apparent in the members of this
list make me want to send this question your way, instead of to somewhere
else</cf_butterup>.
Scenario:
I have an app which runs a query and saves the results to a comma-delimited .txt file.
This has been working great
for either IE 5 or Communicator 4.7. IE5 brings up a dialog box and lets you save the
file wherever you like, using
the value of the outputFilename variable I specified here:
<CFHEADER NAME="Content-Disposition" VALUE="attachment;
filename=#variables.outputFilename#">
<cfcontent type="text/plain" file="#variables.outputDir##variables.outputFilename#"
deletefile="#variables.deleteFile#">
Netscape displays the textfile in the browser, which you then save by hitting
File/Save As. Again, works great.
Now, my client sez he clicks on the button to create the file, and the File Download
dialog box in IE5.5 wants to
save the web page which called the cf routine, instead of the txt file that the
routine creates.
Stimied, I update 5 to 5.5 on my machine, and lo and behold, the same thing happens to
me. I go ahead and save it,
and sure enough, it's the CF page (no cf code, of course, just the generated web
page). Only it gets saved with an
..htm extension instead. There is no file with an .htm extension in that directory.
I'm thinking this part of the
puzzle may be a mime type issue.
Anyway, IE5.5 seems to be 1) ignoring the <cfheader> code, 2) saving the wrong file,
and 3) setting the extension
to something other than what it should be. It's like it's completely ignoring the code
which creates the new file.
Have any of you run across this? Any ideas would be appreciated.
Thx a lot!
Steve Ray
Matrix
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists