cffile
I am using a cffile to delete a file from a directory on my server. On occasion I get an error stating that the file doesn't exist when in fact it does. I am using an absolute directory path: here is an example for my code.
<cfif isDefined("Form.filename")>
<cffile action="delete" file="C:\root\images\#Form.filename#">
</cfif>
Prior to this running, I am uploading a file with a different name in the same directory.![]()
