logic to call it every 5 minutes make use of visibility API/jquery-visibility to perform the ajax call only if the browser is visible/in useremotes/origin/stable5
parent
938254a1c0
commit
e560cba76b
@ -0,0 +1,16 @@ |
||||
<?php |
||||
|
||||
// only need filesystem apps |
||||
$RUNTIME_APPTYPES = array('filesystem'); |
||||
|
||||
OCP\JSON::checkLoggedIn(); |
||||
|
||||
$l=new OC_L10N('files'); |
||||
$maxUploadFilesize = OCP\Util::maxUploadFilesize($dir); |
||||
$maxHumanFilesize = OCP\Util::humanFileSize($maxUploadFilesize); |
||||
$maxHumanFilesize = $l->t('Upload') . ' max. ' . $maxHumanFilesize; |
||||
|
||||
// send back json |
||||
OCP\JSON::success(array('data' => array('uploadMaxFilesize' => $maxUploadFilesize, |
||||
'maxHumanFilesize' => $maxHumanFilesize |
||||
))); |
Loading…
Reference in new issue