Return Value of FileSaveWindow

Just starting out? Need help? Post your questions and find answers here.
menschmarkus
Posts: 37
Joined: Thu Apr 10, 2014 3:35 pm

Return Value of FileSaveWindow

Post by menschmarkus »

Hi,
I offer a file for download from my server. So far so good. Now does the appearing System Window ,which asks for saving the file, send a return value?
If yes, how can I catch this?
as soon you do it right, it works !
User avatar
Peter
Posts: 1086
Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1:9080
Contact:

Re: Return Value of FileSaveWindow

Post by Peter »

menschmarkus wrote:If yes, how can I catch this?
a quick search on my part revealed that this might not be possible:

https://stackoverflow.com/questions/413 ... oad-a-file

Also keep in mind that the download process is automatic for some users (like me) and the dialog does not appear at all.

Greetings ... Peter
menschmarkus
Posts: 37
Joined: Thu Apr 10, 2014 3:35 pm

Re: Return Value of FileSaveWindow

Post by menschmarkus »

I solve the problem with a timer. User now has 'n' minutes to start download. After 'n' minutes the file automatically will be deleted from my server. If he presses the download button after this time there will appear an error message. Bad luck for the user, but I have to keep my server clean from waste.

thanks peter
as soon you do it right, it works !
Post Reply