I am wondering if the following would be a good technique to allow user to download files from the server in the below scenario:
Info about the scenario:
Download button in the UI. Clicking on it triggers a backend Java Message based (JMS)process which uploads a file on the server. This process could take few minutes to an hour depending upon how long the back end process takes to generate CSV files and upload it onto a server.
Note:JMS can handle asynchronous requests from the U so I am not worried about browser freezing after first Download click.
Approach I am thinking:
1) Right now I am not sure how I am going to notify user once files are downloaded but let's say user clicks on the button and returns back after 30 minutes and let's say files are ready.
2) I am planning to show a new button(which could say
Download files from here) after user logs back in after 30 minutes. Maybe I would hide the original
Download button in this scenario. This new button will only appear if files are present on the server. Otherwise, I would keep showing the original
Download button and maybe I could change the text of original
Download button to
Come back later as soon as user clicks on it.
Does the above approach sounds good or is there something better I could do. Any better ideas if anyone can share, that would be great.
Please let me know if I can answer any questions.Thanks