I believe that you will have to wait until the mail is actually sent before
you delete the file.
I would have a routine that ran a few minutes later that deleted the files.

Thats my 2 cents...

Clint

-----Original Message-----
From: Douglas Brown [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 08, 2002 11:55 AM
To: CF-Talk
Subject: Deleting attachement after upload (cfmail)


I am attaching files for cfmail and uploading the files to the server for
the
attachment process. What I want to do is delete the uploaded file after the
attachment sends. Is this possible? I have tried using <cffile
action="delete"
file="C:\mail_uploads\#file.serverfile#"> after the </cfmail> tag, but then
I
get an error trying to send the attachment because it does not exist. I dont
want to clutter the server with files that really does not need saved. Any
solutions would be of great help.


"Success is a journey, not a destination!!"



Doug Brown


______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to