That works, but I have to set a var in the cflocation to pass the path for the file. I dont want the directory structure available in the url. Any thoughts?
"Success is a journey, not a destination!!" Doug Brown ----- Original Message ----- From: <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Monday, April 08, 2002 10:01 AM Subject: RE: Deleting attachement after upload (cfmail) > 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 > > > ______________________________________________________________________ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.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

