CC-5786: Quota Enforcement in the File Upload API
This commit is contained in:
parent
7fbd285dd0
commit
4add0f0b7b
4 changed files with 38 additions and 3 deletions
|
@ -25,6 +25,11 @@ class PluploadController extends Zend_Controller_Action
|
|||
|
||||
$this->view->headLink()->appendStylesheet($baseUrl.'css/plupload.queue.css?'.$CC_CONFIG['airtime_version']);
|
||||
$this->view->headLink()->appendStylesheet($baseUrl.'css/addmedia.css?'.$CC_CONFIG['airtime_version']);
|
||||
|
||||
$this->view->quotaLimitReached = false;
|
||||
if (Application_Model_Preference::getDiskUsage() > Application_Model_Preference::getDiskQuota()) {
|
||||
$this->view->quotaLimitReached = true;
|
||||
}
|
||||
}
|
||||
|
||||
public function recentUploadsAction()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue