forum.coppermine-gallery.net

Dev Board => cpg1.4 Testing/Bugs => cpg1.4 Testing/Bugs: FIXED/CLOSED => Topic started by: ferrill on August 30, 2005, 11:48:10 pm

Title: Batch Upload and Quota Problem
Post by: ferrill on August 30, 2005, 11:48:10 pm
I am using a slightly older version of 1.4 then the official beta but I have not been able to find a post regarding this problem.  It appears that when an administrator does a batch upload into a users account the amount uploaded is counted against the users quota but is not shown that way.

For example:

Below is a partial screen shot of the user admin page.  It shows the user ethan as using 153634 KB out of the available 304800.  A batch upload was performed by admin Ferrill of 107505 KB into user Ethan's personal galleries.  Despite the fact that the 107505 KB is listed under the admin Ferrill it is being counted against the quota of Ethan.  So when Ethan uploads Coppermine thinks (rightly) that ethan has 261139 KB out of 304800 KB.  This can lead to the user running out of quota space without them knowing it becuase their user profile page does not reflect the amount batch uploaded by an admin.  As seen below.  If an admin batch upload into a users personal galleries is gonig to count against that persons quota then the amount should be reflected in thier user profile and the user admin screen.

User Admin Page:
(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.ethan.speakings.net%2Fadminscreen.jpg&hash=6581f71182d9a5b2e2f90e769ca4de66ce64bd50)

User Profile Page:
(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.ethan.speakings.net%2Fprofile.jpg&hash=1e9578cd53f11dc22b9af142e393ca6836c3d81f)
Title: Re: Batch Upload and Quota Problem
Post by: Joachim Müller on August 31, 2005, 08:29:20 am
1) An admin shouldn't upload into a users personal gallery anyway. What's the point?
2) The admin rules: if he decides to upload to a users gallery, the space is taken from the users gallery, what else. How could you possibly code the quota calculation if not by the sum of all files uploaded into a user's personal gallery, no matter who did the upload
3) Please use the most recent cvs checkout. Reporting issues with the beta or even older versions aren't helpful

Marking as "Invalid"
Title: Re: Batch Upload and Quota Problem
Post by: ferrill on August 31, 2005, 01:01:20 pm
"2) The admin rules: if he decides to upload to a users gallery, the space is taken from the users gallery, what else. How could you possibly code the quota calculation if not by the sum of all files uploaded into a user's personal gallery, no matter who did the upload"

Exactly, the problem is that the sum of all the files uploaded into a users personal gallery is not being correctly displayed.  It appears that the quota calculation is correct when a person is actually uploading but that correct calculation is not reflected in any number available.  If an admin does a batch upload for a user, the reported quota is incorrect.

I run a small picture site for my family and friends, if they have a large number of pictures it is sometimes easier for me to do a batch upload for them.
Title: Re: Batch Upload and Quota Problem
Post by: veeber77 on September 05, 2005, 09:22:21 pm
I do it too, but since they're my family and friends I put the site into maintenance mode, make them an admin, then login as them to do the batch upload.  I'm the one who made all their accounts for them.  Granted it'd be nice, but how would you handle photos loaded into non-personal galleries? 
Title: Re: Batch Upload and Quota Problem
Post by: Joachim Müller on September 06, 2005, 07:10:25 am
this thread is closed, cpg1.4.x goes unsupported.