Download wrong file if the requested one is not online

Phoca Download - download manager
Tamtam
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 04 Sep 2020, 16:22

Download wrong file if the requested one is not online

Post by Tamtam »

Hello,
I just installed Phoca download, because I need a tool to allow downloading a file from a special date and time on.
I do not show the download page, but inserting the download link into a text.
During my testing I had the following problem. I entered two files one has start date 1.9.2020 the other one 19.9.2020.
The downloadlinks look like this.
domain/index.php/anmeldeformulare?download=1:testdownload-1
domain/index.php/anmeldeformulare?download=1:testdownload-2
If both files are online it works great, but if one file is not online jet, the page is not redirected to the login, instead the first available file is downloaded.
Is there something wrong in my thinking, or is it a bug.

Is there a possibility to redirect to a special page instead of the login-site? I would like to redirect to a page with the content "The file is not available jet"
Thanks a lot for your feedback
Tamtam
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48550
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Download wrong file if the requested one is not online

Post by Jan »

Hi, both files are the same, both files are ID: 1

Image

The system does not handle alias but ID of the file and in both cases, the ID is 1.

Try to check your SEF settings, try to test it without SEF enabled.

Jan
If you find Phoca extensions useful, please support the project
Tamtam
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 04 Sep 2020, 16:22

Re: Download wrong file if the requested one is not online

Post by Tamtam »

That's it. I thought download=1 means download=true
Thanks a lot.
dash1
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 22 Sep 2020, 02:31

Re: Download wrong file if the requested one is not online

Post by dash1 »

I had the same problem. Now it seems to be working. Thanks!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48550
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Download wrong file if the requested one is not online

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
Post Reply