Vaadin 6 : Window.open(FileResource) ; how do I monitor download? -


i building portlet using vaadin 6. in portlet let end user download result of searches/operations he's done. doing here generate, on fly, zip file download , serve download using

getmainwindow().open(resource);

where resource fileresource.

since search quite complex, have little chance able reuse results and, in order make things nice,i delete zip file server once it's been "consumed" download process.

is there chance can monitor somehow when download has been completed ?

tia

if concern keeping server clean, should enough use tmp-dir of machine. way, os handles deletion you. or write own clean process either cron or sheduler/timer services.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -