Download button redirect

Phoca Download - download manager
Che
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 19 Dec 2016, 18:53

Download button redirect

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48550
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Download button redirect

Post 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. :idea:

Jan
If you find Phoca extensions useful, please support the project
Che
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 19 Dec 2016, 18:53

Re: Download button redirect

Post by Che »

Hi Jan,

Thanks for your reply and suggestion.
I will look in to this possibility.

greetings
Che
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48550
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Download button redirect

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
Che
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 19 Dec 2016, 18:53

Re: Download button redirect

Post 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!
Post Reply