> -----Original Message-----
> From: Saidi; Marwan [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 17, 2001 1:46 PM
> To: CF-Talk
> Subject: CFFILE problems - Can't delete?
>
>
> Hello all,
>
> I am running CF Pro 4.5.1 SP 2 on RedHat 6.2. Using CFFILE, I can upload
> files with no problems. However, if I try to delete them, I get
> this error:
> ~~~
> Error processing CFFILE
>
> Unable to delete the file
> '/home/httpd/html/assets/opsfiles/testimage2.gif.'
> No such file or directory
> ~~~
>
> The file does exist, and the path is correct. File permissions for this
> directory are 777. I'm perplexed.
>
> Here is the code:
>
> <cffile action="DELETE"
> file="/home/httpd/html/assets/opsfiles/<cfoutput>#attributes.filen
> ame#</cfou
> tput>">
>
> Any ideas?
>
After looking at the docs and realizing I know almost nothing about unix, I saw that
that isn't the problem. You don't need <cfoutput> tags around the file name, since
the variable will be automatically evaluated since it is in another tag.
<cffile action="DELETE" file="/home/httpd/html/assets/opsfiles/#attributes.filename#">
- Andy
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists