Controlling User Disk Usage
Hi, 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? Would appreciate if the core dev team can help me on this: a) I do have a Client who can sponsor the development b) We do have the resources who can undertake the development and contribute it back to the community c) We want to to know if anyone is working on a similar thing? If so, we would like to know if the solution will be available anytime soon? I was also checking with Mario who posted a similar thread http://drupal.org/node/93210. Mario replied back that he has also not got any answers. Roshan Shah Drupal Designs BPO Canada Global Services Corporation 604-630-4292 ____________________________________________________________________________________ Yahoo! Music Unlimited Access over 1 million songs. http://music.yahoo.com/unlimited
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.
On 12/3/06, Darren Oh <darrenoh@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.
On 12/3/06, Khalid B <kb@2bits.com> wrote:
On 12/3/06, Darren Oh <darrenoh@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).
I'm working on something similar for a client. They want uploads per-user to tie into their existing user quotas on the server. My tentative idea after talking with dopry was to have all files save to $files_dir/$user->name/blah/blah, and then auto-create symlinks from each user's files dir to a directory in their home dir on the system. Unfortunately different modules store their file paths differently, so I'm getting that working only while the uploading user is still logged in. For anyone else, images are broken. :-) Is this something we could share ideas on? On Saturday 02 December 2006 23:08, Drupal Designs wrote:
Hi,
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? Would appreciate if the core dev team can help me on this:
a) I do have a Client who can sponsor the development b) We do have the resources who can undertake the development and contribute it back to the community c) We want to to know if anyone is working on a similar thing? If so, we would like to know if the solution will be available anytime soon?
I was also checking with Mario who posted a similar thread http://drupal.org/node/93210. Mario replied back that he has also not got any answers.
Roshan Shah Drupal Designs BPO Canada Global Services Corporation 604-630-4292
___________________________________________________________________________ _________ Yahoo! Music Unlimited Access over 1 million songs. http://music.yahoo.com/unlimited
-- Larry Garfield AIM: LOLG42 larry@garfieldtech.com ICQ: 6817012 "If nature has made any one thing less susceptible than all others of exclusive property, it is the action of the thinking power called an idea, which an individual may exclusively possess as long as he keeps it to himself; but the moment it is divulged, it forces itself into the possession of every one, and the receiver cannot dispossess himself of it." -- Thomas Jefferson
There are several ways to solve this problem as we can all see. Some information for everyone. Role purchasing will become much more stable and flexible in the next release of ecommerce (both on 4.7 and 5.0). This will suffice for handling only the quota amount and optionally the time period they'll have access. Modules that currently implement some type of roles handling at purchase time would benefit from using the built-in code to simplify the modules and also the maintenance. Some form of quota management is needed in Drupal. Would be handy if it were separate from ecommerce yet still useable by ecommerce. I'd be interested in writing such a module provided I am (and funding is) available! :) I'd like to be kept in the loop for discussion about this. Cheers, -- Sammy Spets Synerger Pty Ltd http://synerger.com On 03-Dec-06 14:55, Larry Garfield wrote:
I'm working on something similar for a client. They want uploads per-user to tie into their existing user quotas on the server. My tentative idea after talking with dopry was to have all files save to $files_dir/$user->name/blah/blah, and then auto-create symlinks from each user's files dir to a directory in their home dir on the system. Unfortunately different modules store their file paths differently, so I'm getting that working only while the uploading user is still logged in. For anyone else, images are broken. :-)
Is this something we could share ideas on?
On Saturday 02 December 2006 23:08, Drupal Designs wrote:
Hi,
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? Would appreciate if the core dev team can help me on this:
a) I do have a Client who can sponsor the development b) We do have the resources who can undertake the development and contribute it back to the community c) We want to to know if anyone is working on a similar thing? If so, we would like to know if the solution will be available anytime soon?
I was also checking with Mario who posted a similar thread http://drupal.org/node/93210. Mario replied back that he has also not got any answers.
Roshan Shah Drupal Designs BPO Canada Global Services Corporation 604-630-4292
___________________________________________________________________________ _________ Yahoo! Music Unlimited Access over 1 million songs. http://music.yahoo.com/unlimited
-- Larry Garfield AIM: LOLG42 larry@garfieldtech.com ICQ: 6817012
"If nature has made any one thing less susceptible than all others of exclusive property, it is the action of the thinking power called an idea, which an individual may exclusively possess as long as he keeps it to himself; but the moment it is divulged, it forces itself into the possession of every one, and the receiver cannot dispossess himself of it." -- Thomas Jefferson
On Dec 3, 2006, at 9:18 PM, Sammy Spets wrote:
There are several ways to solve this problem as we can all see.
Some information for everyone. Role purchasing will become much more stable and flexible in the next release of ecommerce (both on 4.7 and 5.0). This will suffice for handling only the quota amount and optionally the time period they'll have access.
If you want to provide users with the flexibility to choose how much space to purchase, role access won't work. You can't buy a role multiple times.
On 12/3/06, Darren Oh <darrenoh@sidepotsinternational.com> wrote:
On Dec 3, 2006, at 9:18 PM, Sammy Spets wrote:
Some information for everyone. Role purchasing will become much more stable and flexible in the next release of ecommerce (both on 4.7 and 5.0). This will suffice for handling only the quota amount and optionally the time period they'll have access.
If you want to provide users with the flexibility to choose how much space to purchase, role access won't work. You can't buy a role multiple times.
My understanding was that you'd have tier-ed roles, 1x, 2x, 3x, etc. But in that case, without seeing the module "selling" the role access, upgrading would present a bit of a challenge. nadrwe
Darren Oh and Andrew Morton are absolutely correct. Thanks Darren for pointing out that I didn't put enough information in my mail. Quota handling must be done outside of ecommerce though depending on the use case, you may be able to leverage some of the cool ecommerce features. As Darren put it, the use case (a) where you want flexible quota would be handled as a custom product rather than a role purchase. As Andrew pointed out, the use case (b) where roles and quota amounts are 1-to-1 you can use role purchasing. In both (a) and (b) you'll require another module to handle quotas. At present upgrades between product levels is not developed in ecommerce. That will be done in the next revision though it's already designed. I'd like to see a module that covers both use cases (a) and (b). That would definitely give us something to jump up and down about. Cheers, -- Sammy Spets Synerger Pty Ltd http://synerger.com On 03-Dec-06 21:42, Darren Oh wrote:
On Dec 3, 2006, at 9:18 PM, Sammy Spets wrote:
There are several ways to solve this problem as we can all see.
Some information for everyone. Role purchasing will become much more stable and flexible in the next release of ecommerce (both on 4.7 and 5.0). This will suffice for handling only the quota amount and optionally the time period they'll have access.
If you want to provide users with the flexibility to choose how much space to purchase, role access won't work. You can't buy a role multiple times.
participants (6)
-
andrew morton -
Darren Oh -
Drupal Designs -
Khalid B -
Larry Garfield -
Sammy Spets