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
Download button redirect
- Jan
- Phoca Hero
- Posts: 48550
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Download button redirect
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

Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 3
- Joined: 19 Dec 2016, 18:53
Re: Download button redirect
Hi Jan,
Thanks for your reply and suggestion.
I will look in to this possibility.
greetings
Che
Thanks for your reply and suggestion.
I will look in to this possibility.
greetings
Che
- Jan
- Phoca Hero
- Posts: 48550
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
-
- Phoca Newbie
- Posts: 3
- Joined: 19 Dec 2016, 18:53
Re: Download button redirect
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!
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!