[development] Controlling User Disk Usage
Khalid B
kb at 2bits.com
Sun Dec 3 19:04:48 UTC 2006
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20061203/22d4c2e3/attachment-0001.htm
More information about the development
mailing list