forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 permissions => Topic started by: DoctorBean on December 17, 2010, 02:09:09 pm

Title: User can't upload images
Post by: DoctorBean on December 17, 2010, 02:09:09 pm
I have 31 users on my gallery, and each one can upload images to their own albums, bar one. He can create albums, but can't upload images. He gets a message stating that he doesn't have permission to perform that action. Now every user has the same permissions, him included. The only thing I can think of is his browser. Or might there be something else?

Thanks in advance.
Title: Re: User can't upload images
Post by: Αndré on December 17, 2010, 03:14:42 pm
Create a new test account. Firstly try yourself if you can upload files with that account. If it works, let the user upload some files with that account. If it fails it's definitely an individual issue of that user's browser/machine.

Please post some additional information like a link to your gallery and if you bridged your gallery. Does that user belongs to some additional user groups the users don't belong to?
Title: Re: User can't upload images
Post by: DoctorBean on December 17, 2010, 03:19:36 pm
I've created a test account, and I can upload with that. I'll try your advice and let him use that account. No, it is not bridged. There are two user groups, of which only one group can upload. He has been added to that group. Users have to apply for that group, and I add them manually. The link is:

http://www.realityart.co.uk/gallery/index.php
Title: Re: User can't upload images
Post by: Αndré on December 17, 2010, 03:24:23 pm
Does he only belongs to that group or to another group that has no upload privileges?
Title: Re: User can't upload images
Post by: DoctorBean on December 17, 2010, 03:27:01 pm
He (like everyone else) belongs to two groups:

Primary - upload privileges
Secondary - No upload privileges
Title: Re: User can't upload images
Post by: Αndré on December 17, 2010, 03:34:14 pm
Okay. Let's wait for the test results from that user.
Title: Re: User can't upload images
Post by: DoctorBean on December 20, 2010, 10:19:45 am
I received the following message from the user in question this morning:

Quote
Tried your latest suggestion of using the test account with the same result. I use Zone Alarm Extreme security so I've tried turning off the Force field component and trying again with no luck. I've downloaded and used Opera and Safari plus Internet Explorer and all give the same result so I've almost eliminated it being a problem with either Firefox or Zone Alarm.
What I did notice after the latest attempt was that after I browsed to the file location on my computer and clicked the upload button was that the activity bar at the bottom of Firefox gave me the message, Transferring data from Realityart.co.uk then the message about not having permission to perform this action pops up. I might be wrong but it looked like the browser was trying to download the image from the server rather than upload from my hard drive.
Title: Re: User can't upload images
Post by: Αndré on December 20, 2010, 11:08:13 am
So it's definitely a client-side issue. Please let test him both the flash uploader and the simple upload form with the test account. Please verify that both work for you as well with the test account.
Title: Re: User can't upload images
Post by: DoctorBean on December 20, 2010, 11:20:41 am
I've just tried the Simple Upload method, and received the same message he got. The Flash Upload however works just fine. I suspect that he has been trying the Simple Upload method.
Title: Re: User can't upload images
Post by: Αndré on December 20, 2010, 01:19:01 pm
Please post the groups settings of the groups the user belongs to. Does the error occur while upload to a personal album, a public album or both?
Title: Re: User can't upload images
Post by: DoctorBean on December 20, 2010, 01:32:45 pm
Screenshot of the groups permissions. The primary group is Reality, and Registered secondary for Reality members. If I remember correctly, the error occurs to both.

Title: Re: User can't upload images
Post by: Αndré on December 20, 2010, 02:04:04 pm
The primary group is Reality, and Registered secondary for Reality members.
I assume vice versa: primary group 'Registered' and secondary group 'Reality'?
Title: Re: User can't upload images
Post by: DoctorBean on December 20, 2010, 02:08:50 pm
I assume vice versa: primary group 'Registered' and secondary group 'Reality'?

When a user Registers, he is a Registered group member. If he uses the Reality plug-in (DAZ Studio), then I change his primary to Reality group, and then add Registered as secondary group. Thinking about it, it sounds like doing things twice. Maybe I should just add Reality as a secondary group.
Title: Re: User can't upload images
Post by: DoctorBean on December 20, 2010, 02:10:19 pm
It is actually done that way, so that I can see who belongs to what group ... hence changing the users group.
Title: Re: User can't upload images
Post by: Αndré on December 20, 2010, 02:36:00 pm
I change his primary to Reality group, and then add Registered as secondary group
I just tested that, but that seems not to be possible. I can just add non-default groups as secondary user groups. What's the benefit of adding users of the group 'Reality' additionally to the 'Registered' group? I assume it's because you hide some albums that are only visible for users in the 'Registered' group?
Title: Re: User can't upload images
Post by: DoctorBean on December 20, 2010, 02:48:43 pm
I just tested that, but that seems not to be possible. I can just add non-default groups as secondary user groups. What's the benefit of adding users of the group 'Reality' additionally to the 'Registered' group? I assume it's because you hide some albums that are only visible for users in the 'Registered' group?

The group Reality I created myself.

How it works is that only the Registered group members can view albums which have their permissions set to Registered only. That means the Reality group (which is a higher group) can't view it. Therefore they need to be added as a secondary to Registered.
Title: Re: User can't upload images
Post by: Αndré on December 20, 2010, 03:23:21 pm
I still don't know how you added the group 'Registered' as secondary group. That's of course possible by manipulating the database, but I'm not able to do that within the Coppermine interface. Please describe how you did that so I can setup my testbed accordingly.
Title: Re: User can't upload images
Post by: DoctorBean on December 20, 2010, 03:45:55 pm
When a user registers, and needs to be reclassified, I go to Users and change his primary (screenshot Primary)
I then add him to secondary (screenshot Secondary)
And the result (screenshot Result)
Title: Re: User can't upload images
Post by: Αndré on December 20, 2010, 03:53:27 pm
Ah, I tried that by editing the user profile ::)
Title: Re: User can't upload images
Post by: DoctorBean on December 20, 2010, 03:58:15 pm
Lol  ;D

So do we know why Simple Upload doesn't work but Flash Upload do?
Title: Re: User can't upload images
Post by: Αndré on December 20, 2010, 04:08:19 pm
Afaik always the lowest permission level will be used, but I cannot find that in the docs on the quick, so maybe that information is wrong.

What happens if you assign that user to 'Registered' as primary group and 'Reality' as secondary group?

Does it work if he's only in the 'Reality' group?
Title: Re: User can't upload images
Post by: DoctorBean on December 20, 2010, 04:10:54 pm
I don't know, will have to try that. What is very strange though is that he is the only user who can't upload. Unless all the others have used the Flash method and not the Simple one, and therefore didn't run into problems.
Title: Re: User can't upload images
Post by: DoctorBean on December 22, 2010, 09:14:46 pm
It was his problem, trying the Simple Upload method. All is well now that he is using the recommended method.