We used to us the method below but CFMX unfortunately does not like it. However, we instead use:
<CFHEADER name="Content-Disposition" value="attachment; filename=#filename#"> <cfcontent type="application/octet-stream" file="#TempPath##TempFile#" deletefile="Yes"> The link beforehand can just be to the normal .cfm page with the code above. Paolo -----Original Message----- From: Paul Johnston [mailto:[EMAIL PROTECTED]] Sent: 05 February 2003 13:29 To: [EMAIL PROTECTED] Subject: RE: [ cf-dev ] Delete file after download... The way I've done it before is to use cfcontent. The download link contains a UUID of some sort, that is related to a database, which tells the CF template which file to retrieve. Ie: <a href="download.cfm?/1234567890asdfsdsdgfdf/myfile.xml">Download</a> Then the UUID is removed from the database and that link cannot be used again. Of course, the problem is then that you have to make sure that kind of link is allowed. Paul ------------------------------------------- Paul Johnston PJ Net Solutions Ltd http://www.pjnetsolutions.com [EMAIL PROTECTED] +44 (0)7866 573013 > -----Original Message----- > From: Robertson-Ravo, Neil (RX) > [mailto:[EMAIL PROTECTED]] > Sent: 05 February 2003 13:13 > To: '[EMAIL PROTECTED]' > Subject: [ cf-dev ] Delete file after download... > > > Anyone think of a way in which I can delete a file from the > server once it has been downloaded? At the moment it is > triggered via a simple <a > href></a> ....... > > Neil > > -- > ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ > > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] For human help, e-mail: > [EMAIL PROTECTED] > -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED] -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED]
