Page 1 of 1
Download button redirect
Posted: 19 Dec 2016, 19:05
by Che
Hello,
After pressing the download button and downloading a file, I would like to automatically redirect the users to another page on my website.
Is there a possibility to do that?
thank you for your help!
best wishes
Che
Re: Download button redirect
Posted: 25 Dec 2016, 18:30
by Jan
Hi, when the download is forced by script, it ends and does not return anything. It means, user get the file output from your server to user's PC (browser) and there is not possible to add something at the end of the script as in such case the file will be damaged. The only idea I have, is somehow to do per e.g. javascript, to detect, that the file was successfully released from server and then make the redirect.
Jan
Re: Download button redirect
Posted: 26 Dec 2016, 21:21
by Che
Hi Jan,
Thanks for your reply and suggestion.
I will look in to this possibility.
greetings
Che
Re: Download button redirect
Posted: 27 Dec 2016, 15:18
by Jan
Ok
Re: Download button redirect
Posted: 04 Oct 2017, 20:54
by Che
Hey guys,
Could you please share if you have found a solution for this ?
I am pretty happy with phoca so far, and it would great I can also redirect my users to a special page after download.
thanks!