|
|
this is my error:
Error Diagnostic Information
An error occurred while evaluating the expression:
"#feature.MYFile#"
Error near line 153, column 78.
Error resolving parameter FEATURE.MYFILE
ColdFusion was unable to determine the value of the parameter. This problem is
very likely due to the fact that either:
You have misspelled the parameter name, or
You have not specified a QUERY attribute for a CFOUTPUT, CFMAIL, or CFTABLE
tag.
The error occurred while processing an element with a general identifier of
(CFFILE), occupying document position (153:2) to (153:94) in the template file
c:\websites\x9vdzd\admin\Action.cfm.
Here is the code I am using, I changed it from your advice:
<cfquery name="DeleteRecord" dataSource="#sitedatasource#" maxRows=1>
DELETE
FROM feature
WHERE feature.id = <cfqueryparam cfsqltype="cf_sql_char"
value="#form.id#">
</cfquery>
<cffile action="delete" destination="c:/websites/x9vdzd/img/feature"
file="#feature.MYFile#">
<cflocation url="feature_RecordView.cfm">
Any suggestions?
|
|