Hello CFers -
Has anyone been successful using the deletefile attribute of cfcontent
to delete a file?

The following code does not delete the file for me using Cold Fusion 5.

<!--- Use CFContent to serve up file--->
<CFLOCK name="servePDF" timeout="30" type="EXCLUSIVE">

    <CFHEADER NAME="Content-Disposition"
               VALUE="inline; filename=#PDF_Name#">

    <CFCONTENT type="application/pdf"
         file="#expandpath('.')#\#PDF_Name#"
         deletefile="Yes">

</CFLOCK>

I know that I can use a cfdirectory and cffile to check the directory
for older pdfs and clean them up.

I was just wondering if any of you have had success using
deletefile=yes  because it would be really
convenient if it worked.

TIA,
Melissa Fraher

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to