upload file access level

Phoca Download - download manager
daza
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 03 Jun 2010, 18:59

upload file access level

Post by daza »

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

Re: upload file access level

Post by Jan »

Hi, if the category is not accessable, then no file can be downloaded from the category :idea:

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
pinocchio
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 26 Oct 2011, 21:43

Re: upload file access level

Post by pinocchio »

Hello
I have a similar problem.
but I can't find this file.
please tell me what's file name?
Thanks
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: upload file access level

Post by Jan »

components/com_phocadownload/controllers/ ...
If you find Phoca extensions useful, please support the project
ecuapac
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 23 Oct 2013, 16:38

Re: upload file access level

Post by ecuapac »

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!
jstratos
Phoca Member
Phoca Member
Posts: 12
Joined: 05 Mar 2009, 06:49

Re: upload file access level

Post by jstratos »

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

Re: upload file access level

Post by Jan »

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

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