Hi I'd like that the uploaded files by users from the front end have by default level access set to "registered".Now they are public by default and only in back end is possible change that to "registered". So now even if I've already set the permissions for the categories, when user upload file in that categories, all user can download these files not only the ones I've specified in category's parameters.
How can I do this?
thanks
upload file access level
- Jan
- Phoca Hero
- Posts: 48566
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: upload file access level
Hi, if the category is not accessable, then no file can be downloaded from the category
if the file should be set to registered, you need to customize the code, so after uploading the access settings of file should be set to true.
See the controller (user) in frontend.
Jan

if the file should be set to registered, you need to customize the code, so after uploading the access settings of file should be set to true.
See the controller (user) in frontend.
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 2
- Joined: 26 Oct 2011, 21:43
Re: upload file access level
Hello
I have a similar problem.
but I can't find this file.
please tell me what's file name?
Thanks
I have a similar problem.
but I can't find this file.
please tell me what's file name?
Thanks
- Jan
- Phoca Hero
- Posts: 48566
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: upload file access level
components/com_phocadownload/controllers/ ...
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 1
- Joined: 23 Oct 2013, 16:38
Re: upload file access level
Hi!
I'm also trying to realize this and set the default access level to "restricted" when files get uploaded.
I'm looking those controllers now for quite a while without finding where the access level upon a file upload is set. Can anybody help with a more specific location than "components/com_phocadownload/controllers/ ...".
Thanks!
I'm also trying to realize this and set the default access level to "restricted" when files get uploaded.
I'm looking those controllers now for quite a while without finding where the access level upon a file upload is set. Can anybody help with a more specific location than "components/com_phocadownload/controllers/ ...".
Thanks!
-
- Phoca Member
- Posts: 12
- Joined: 05 Mar 2009, 06:49
Re: upload file access level
Did anyone resolve this issue yet? I just encountered the same issue. Whenever an admin user uploads a file from the frontend, it defaults to "registered" access level and not "public" even having checked all category rights settings and user access levels in the Options settings.
Using Joomla 2.5.28 with version 2.18.
Using Joomla 2.5.28 with version 2.18.
- Jan
- Phoca Hero
- Posts: 48566
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: upload file access level
Hi, really no idea what can be wrong there but try to modify this file:
components/com_phocadownload\models\user.php
cca line: 350
$data['access'] = 1;
Then the file will be 100% set for public
Jan
components/com_phocadownload\models\user.php
cca line: 350
$data['access'] = 1;
Then the file will be 100% set for public

Jan
If you find Phoca extensions useful, please support the project