Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 71541 invoked from network); 10 Mar 2011 16:07:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Mar 2011 16:07:32 -0000 Received: (qmail 11328 invoked by uid 500); 10 Mar 2011 16:07:28 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 11268 invoked by uid 500); 10 Mar 2011 16:07:28 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 11251 invoked by uid 99); 10 Mar 2011 16:07:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Mar 2011 16:07:28 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,RFC_ABUSE_POST,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of dckerber@verizon.net designates 206.46.173.1 as permitted sender) Received: from [206.46.173.1] (HELO vms173001pub.verizon.net) (206.46.173.1) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Mar 2011 16:07:19 +0000 Received: from [172.17.47.42] ([unknown] [216.41.111.254]) by vms173001.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LHU00HR1NFEICN1@vms173001.mailsrvcs.net> for users@tomcat.apache.org; Thu, 10 Mar 2011 10:06:51 -0600 (CST) Message-id: <4D78F719.50506@verizon.net> Date: Thu, 10 Mar 2011 11:06:49 -0500 From: David kerber User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-version: 1.0 To: Tomcat Users List Subject: Re: Cannot create a link to a file - suspecting tomcat is the issue References: , , <1C6F1A87DD804C479CF4C0B0CAE88D5406133927@be19.exg4.exghost.com>, <3a0bd173b668f325a6fcc19200670070@tau.ceti.pl> In-reply-to: <3a0bd173b668f325a6fcc19200670070@tau.ceti.pl> Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On 3/10/2011 10:57 AM, Mikolaj Rydzewski wrote: > > On Fri, 11 Mar 2011 04:44:27 +1300, John C > wrote: >> Actually I have one more question that hopefully you can help with. >> How do you delete a file after a user downloads/views it or closes the >> browser window? Is there any way to track this or is the solution to >> clean up the files after a specific amount of time has passed? > > Do not create such file! Instead stream data on the fly from within a > servlet. > Yep. Or create the file in a temp folder, stream it down with a servlet and then delete it as soon as the stream is done. I do this all the time; works fine. D --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org