[development] Controlling User Disk Usage

Khalid B kb at 2bits.com
Sun Dec 3 19:09:12 UTC 2006


On 12/3/06, Khalid B <kb at 2bits.com> wrote:
>
> On 12/3/06, Darren Oh <darrenoh at sidepotsinternational.com> wrote:
> >
> > On Dec 3, 2006, at 12:08 AM, Drupal Designs wrote:
> >
> > > I am looking to see if there is any way one can have disk usage
> > > limit set per user? Basically wanted to know what is the best way
> > > to implement payment levels (monthly membership) based on disk
> > > usage needs for a user?
> > >
> > > Is there anything available? If not, what is the best way to do it?
> >
> > If you're looking for a way control the amount of space users can use
> > for uploaded files, the best way I can think of is to create a custom
> > access control module. Users would determine their levels of access
> > by subscribing in your E-Commerce store. The access control module
> > would check to see whether the user's subscription is current and
> > whether the user has space left before allowing a file to be
> > uploaded. You could also create a settings page to configure whether
> > files from expired subscriptions should be deleted by a cron task
> > after a period of time.
> >
> > As far as I know, no one is working on such a module. I estimate that
> > it would take about a week to develop and test.
> >
>
>
> Look into the upload module code. It has a way to limit total size of
> files
> per role (if you have roles defined).
>
> You can use a similar scheme, but on a per user basis.
>


Or, you can make users pay for getting a role, and determine the quote
based on that role.

Several Paypal modules grant the user a role on payment, and ecommerce
has some development towards that too (may be done already).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20061203/32b939f8/attachment.htm 


More information about the development mailing list