Loading...
 
Architecture / Installation

Architecture / Installation


File upload (permission denied)

posts: 5

Hi all,

I finally got uploads to work for the admin user (permissions stuff and PHP Safe mode).

I've created a file gallery which only a specific group of users can access and upload/down from.

As the admin user upload and download works great from the gallery.

As other users the gallery is greyed out so they cannot access it ! (as it should be)
The group have tiki_p_batch_upload_files, tiki_p_download_files, tiki_p_upload_files, tiki_p_upload_files rights but they are still getting permission denied ("you cannot upload files") !

Strange ? It looks like i did everything right ? what am i missing here ??

Regards
Lasse

PS: BTW i'm running 1.7.2.

posts: 2881 United Kingdom

Hi Lasse,

Have you tried setting permission on the file gallery itself rather than just on the group?

I've got 1.7.2 running at www.damosoft.co.uk, file galleries working well, I have permissions set on the file galleries rather than at group level.

Hope it helps, if not, post again and I'll have another think! confused


posts: 5

I don't quite get what you're going at ?

I go to the site. Log on as admin. Click at the file galleries click on the permissions icon on the relevant forum and choose the "assign permissions to this object" ??

I need to have different permissions for the different file galleries because not all users have access to all file galleries. Some Galleries are very restricted (well they should be).

Regards
Lasse


posts: 2881 United Kingdom

Hi,

Yes, click the permissions icon next to each file gallery. If you add one permission to the file gallery is kind of disables any other file gallery permissions any user has. So you will have to assign those permissions for each group you have onto that gallery.

So for example
if you add admin group allowing batch upload. It will turn off all other permissions any user will have to download any files. You would need to also add registered (Whatever group you have) users to download and view the gallery.

Hope that explains it a little better. confused

Damian


posts: 5

Did that !

The right are as shown in the original post. But even users from the group with view and upload rights are getting permission denied when trying to upload ?


posts: 3

Help, Help, i've a problem to upload file more than 1mb. This the message error i have to try to upload file more than 1mb :

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 131072 bytes) in /var/www/www/tiki-upload_file.php on line 113

Can you help me please ?


posts: 1001 Canada
This is a PHP memory issue. You must raise your limit from 8MB to (recommended) 16 MB in php.ini.