Page 1 of 1

Download wrong file if the requested one is not online

Posted: 04 Sep 2020, 16:54
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

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

Posted: 08 Sep 2020, 11:49
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

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

Posted: 18 Sep 2020, 07:10
by Tamtam
That's it. I thought download=1 means download=true
Thanks a lot.

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

Posted: 22 Sep 2020, 03:00
by dash1
I had the same problem. Now it seems to be working. Thanks!

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

Posted: 22 Sep 2020, 11:30
by Jan
Ok