Archived from the Transloadit support forum. Originally posted on November 17, 2013; details may be outdated, see our docs for current behavior. Original thread
Hi all,
Sometimes we want to use transloadit on a platform that will be used for different customers.
The problem we face is how to make sure customers only use their upload space and don’t overscript others.
For example, as a transloadit customer, imagine i have a 100GB plan.
Now, if i have 20 customers that will use all my templates how can i specify that each costumer can only use 5GB each month. I need to make sure every customer has its 5GB reserved and no one use more than 5GB.
I came with a simple feature for it. Let me share.
What do you think to add quota setting in the export robots?
eg:
@@@
"rackspace": {
"robot": "/cloudfiles/store",
"container": "mycontainer",
"account_type": "uk",
"user": "myuser",
"key": "REDACTED",
"use": [
"original"
],
"quota_user": "customer1",
"quota_limit": "5000",
"quota_webhook_80": "http://domain.com/sendcustomeremailaboutlimit/customer1"
}
@@@
This way, when customer1 uploads a file:
- original will be stored if customer1 quota is below 5000MB and costumer1 quota will be increased by file size uploaded;
- otherwise, customer1 will get a error message when uploading about quota exceed and file is not stored;
additionally, if current quota is between 80% and 100% transloadit will call a curl to quota_webhook_80 so that our platform can notify customer1 and make all adjustments.
On transloadit control-panel monthly-usage we would get robot sizes.. see attach example 🙂
This would be really amazing and very very useful.
What do you think?
best,
Francisco Azevedo