99 Posts
SimonD
7 years ago
3
Topic

Hello,

I would like to know how could I make file download url active only for registered user.

I mean, I can play with ACL to hide the link but it isn't enough because the full url is active anyway and not registered people can download the file by putting its full url in his browser.

Regards

Get a Book for SEBLOD
4229 Posts
Kadministrator
7 years ago
0
Level 1

Download urls are ACL protected, you don't see link to the actual file, you get link like this index.php?option=com_cck&task=download&file=download_field_test&id=89 and it does not work if user is not allowed to see it e.g. if you put Registered viewlevel restriction on the field

99 Posts
SimonD
7 years ago
0
Level 1

Hello Klas,

My mistake.

While reviewing the link in your reply I realize that my File upload field is inside a Groupx field (links are as follow: index.php/component/cck/?task=download&collection=document&xi=0&file=fichier&id=146).

Correctly setting ACL for the Groupx field fixed the problem.
Now not registered user can't download file even if he knows the url of its link.

Regards

4229 Posts
Kadministrator
7 years ago
0
Level 1

Download urls are ACL protected, you don't see link to the actual file, you get link like this index.php?option=com_cck&task=download&file=download_field_test&id=89 and it does not work if user is not allowed to see it e.g. if you put Registered viewlevel restriction on the field

Get a VIP membership