On Tue, Jun 15, 2010 at 5:24 AM, Alex Rass <[email protected]> wrote: > You should consider that 2 users can be doing it at the same time. > Which will lead to serious errors. > I would suggest using a random file name (or one with session hash in the > filename) so you avoid userA downloading userB's download.zip > > I would think that you should be able to just stream it right back to the > client as a redirect or smth. This temporary file thing seems very > improper. > > - Alex >
You don't even have to do all that random naming stuff yourself. Just use a Resource that's local to the user's session and Wicket will create the URL for you. That also saves him from having to write it out to a file at all - he can just stream it back if desired. -- Jeremy Thomerson http://www.wickettraining.com
