what i would do is have two pages.first one has the cfmail tag sending the
attachment. then after it is done, it do a cflocation to a second page that
deletes the files. 

Anthony Petruzzi
Webmaster
954-321-4703
http://www.sheriff.org


-----Original Message-----
From: Douglas Brown [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 08, 2002 12:55 PM
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