Detecting File Download Completion
Hi! I would just like to ask if it's possible for me to check the status of a file download using jsp/javascript.
I have a jsp page with a button, which when clicked, opens a 'Save As' dialog box for downloading a file from the server (file content is retrieved from db). I want to refresh or redirect my page after the download is complete. Is that doable?
Thanks in advance, any help will be greatly appreciated. :)
Re: Detecting File Download Completion
Hello fedfan, welcome to the forums.
I don't think it is possible to check the status of a downloaded file using JSP. As far as i'm aware, there is no built in process to check to see if the download is complete.
Hopefully someone else here will be able to prove me wrong...
Re: Detecting File Download Completion
Re: Detecting File Download Completion
Follow up question: Is it possible at all for me to know the path of the local directory where the client chose to save the downloaded file? :confused:
Re: Detecting File Download Completion
Quote:
Originally Posted by
fedfan
Follow up question: Is it possible at all for me to know the path of the local directory where the client chose to save the downloaded file? :confused:
I don't think this is possible :-? I guess the only way to do it would be for the user to enter the location manually.
Sorry I can't be of more help! Please let me know if you find a solution.