Ask a Question related to Macromedia ColdFusion, Design and Development.
-
gmahler5th #1
Using CFCONTENT with Dynamic Variables
If I hardcode all of the values for a force file download using CFCONTENT, I
can save the file just fine. But the problem is that I want to reuse the file
download page to force a file download for more than one file name. When I
substitute variables for the filename, I get the following error.
"Complex object types cannot be converted to simple values. "
The code I am using is:
<cfset file= "templates.zip">
<cfheader name="Content-Disposition" value="attachment;filename=#file#">
<cfcontent file="C:\Inetpub\wwwroot\downloads\#file#"
type="application/x-zip-compressed" reset="no">
I am running CFMX7 on IIS5.0 and IE6. I get the same exact error when running
under Firefox.
gmahler5th Guest
-
passing dynamic variables
Am creating a video library using a database to store the url links to the videos - how do I pass a variable selection from one html page to another... -
updating db from dynamic form variables
I am having a hard time trying to figure out how to update my database from a form of dynamically populated formfields. I searched around and read... -
CFLOOP and dynamic variables
Hi, have a simple problem - and I cannot find a simple answer! I am looping through a list of fields returned from a form. FORM.FIELDLIST via... -
Cfcontent and session variables
Our site allows members to download mpg files through cfcontent. Our basic code is: <CFSET... -
Dynamic targets and variables
I have a variable / movie clip that I am dynamically creating. Lets say: num = 1; And I create a new movieclip like this: ... -
Fernis #2
Re: Using CFCONTENT with Dynamic Variables
This is a classic. :-)
You can't use "file" as your variable name. It's reserved by CF. Change it to something else, for example #myFile#.
Fernis Guest



Reply With Quote

