tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David kerber <>
Subject Re: Cannot create a link to a file - suspecting tomcat is the issue
Date Thu, 10 Mar 2011 16:06:49 GMT
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.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message