Re: Deleting a record and the uploaded file problem
this is my error:
Error Diagnostic Information
An error occurred while evaluating the expression:
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
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
Here is the code I am using, I changed it from your advice:
<cfquery name="DeleteRecord" dataSource="#sitedatasource#" maxRows=1>
WHERE feature.id = <cfqueryparam cfsqltype="cf_sql_char"
<cffile action="delete" destination="c:/websites/x9vdzd/img/feature"