Great!
now, for the file deletion - i can't really see anything
obviously wrong
with it...
one thing i would try is move the cffile action=delete to
before the
delete query...
and you can add some debugging to it to try and see what is
happening there:
1) add <cfoutput>#pathtofile#</cfoutput> after
setting that var to see
what it is being set to
2) put the cffile code inside a cftry/cfcatch block and
cfdump the
#cfcatch# variable on error:
<cftry>
...your cffile delete code
<cfcatch type="any">
<cfdump var="#cfcatch#">
</cfcatch>
</cftry>
on a related subject:
if the delete code is on the same action page of the same
form as your
insert/update form, then you do not really need your
getFileName query,
since your form already holds the file name in the hidden
oldimage field...
---
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com