Phoca
Phoca Seal

upload file access level

upload file access level

Postby daza on 03 Jun 2010, 19:29

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
daza
Phoca Newbie
Phoca Newbie
 
Posts: 3
Joined: 03 Jun 2010, 18:59

Google Ads


Re: upload file access level

Postby Jan on 10 Jun 2010, 01:14

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 some Phoca extensions useful, please vote for them on: extensions.joomla.org
User avatar
Jan
Phoca Hero
Phoca Hero
 
Posts: 32454
Joined: 10 Nov 2007, 18:23
Location: Czech Republic

Re: upload file access level

Postby pinocchio on 28 Oct 2011, 15:32

Hello
I have a similar problem.
but I can't find this file.
please tell me what's file name?
Thanks
pinocchio
Phoca Newbie
Phoca Newbie
 
Posts: 2
Joined: 26 Oct 2011, 21:43

Re: upload file access level

Postby Jan on 02 Nov 2011, 00:33

components/com_phocadownload/controllers/ ...
If you find some Phoca extensions useful, please vote for them on: extensions.joomla.org
User avatar
Jan
Phoca Hero
Phoca Hero
 
Posts: 32454
Joined: 10 Nov 2007, 18:23
Location: Czech Republic

Re: upload file access level

Postby ecuapac on 23 Oct 2013, 16:58

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!
ecuapac
Phoca Newbie
Phoca Newbie
 
Posts: 1
Joined: 23 Oct 2013, 16:38


Return to Phoca Download

Who is online

Users browsing this forum: No registered users and 2 guests