I think a couple of responses you have are on the mark Steve - I had a similar problem only recently and it was because the file was getting deleted before the mail system could process it all.
++++++++++ Kevin Parker ++++++++++ -----Original Message----- From: Steve LaBadie [mailto:slaba...@po-box.esu.edu] Sent: Thursday, 24 October 2013 12:08 AM To: cf-talk Subject: CFFILE Question I have a web-based form that requires the user to upload a document. Everything works fine until I try and delete the document after delivery. With the delete action enabled the email does not get delivered. I have place the action=delete inside and outside of the </cfmail> <cfif isDefined("form.attached") AND form.attached NEQ ""> <cffile action="upload" destination="f:\inetpub\wwwroot\......\......\upload" mode="644" nameConflict="overwrite" fileField="form.attached"> <cfset attachment="f:\inetpub\wwwroot\......\......\upload\#cffile.serverFile#"> </cfif> <cfprocessingdirective suppresswhitespace="no"> <cfmail from="#......#" to="#......#" subject="" type="html"> <cfsilent><cfif FORM.attached neq ""><cfmailparam file="#attachment#" /></cfif></cfsilent> </cfmail> <cfif isDefined("form.attached") AND form.attached NEQ ""> <cffile action="Delete" file="#attachment#"> </cfif> Steve LaBadie, Web Manager East Stroudsburg University 570-422-3999 slaba...@esu.edu<mailto:slaba...@esu.edu> [facebook-16x16]<http://www.facebook.com/eaststroudsburguniversity> [twitter-16x16] <http://twitter.com/esuniversity> [youtube-16x16] <http://www.youtube.com/user/esuedu> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356968 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm