summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/public.php
diff options
context:
space:
mode:
authorPellaeon Lin <nfsmwlin@gmail.com>2014-01-17 17:10:42 +0800
committerPellaeon Lin <nfsmwlin@gmail.com>2014-01-17 17:10:42 +0800
commit4726a2021b70f2ee70b4cb8817fd89a8532b848b (patch)
treef0fdf04bc887a5119d2a5515f830ffefdc4f3dc1 /apps/files_sharing/public.php
parent6ec50e4b0c435789732186eb3c6839883061e5a8 (diff)
downloadnextcloud-server-4726a2021b70f2ee70b4cb8817fd89a8532b848b.tar.gz
nextcloud-server-4726a2021b70f2ee70b4cb8817fd89a8532b848b.zip
Add $freeSpace and $uploadLimit to files_sharing
Diffstat (limited to 'apps/files_sharing/public.php')
-rw-r--r--apps/files_sharing/public.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/files_sharing/public.php b/apps/files_sharing/public.php
index f4042f65248..540f2b004c6 100644
--- a/apps/files_sharing/public.php
+++ b/apps/files_sharing/public.php
@@ -141,6 +141,8 @@ if (isset($path)) {
OCP\Util::addScript('files', 'jquery.iframe-transport');
OCP\Util::addScript('files', 'jquery.fileupload');
$maxUploadFilesize=OCP\Util::maxUploadFilesize($path);
+ $freeSpace=OCP\Util::freeSpace($dir);
+ $uploadLimit=OCP\Util::uploadLimit();
$tmpl = new OCP\Template('files_sharing', 'public', 'base');
$tmpl->assign('uidOwner', $shareOwner);
$tmpl->assign('displayName', \OCP\User::getDisplayName($shareOwner));
@@ -161,6 +163,8 @@ if (isset($path)) {
$tmpl->assign('allowPublicUploadEnabled', $allowPublicUploadEnabled);
$tmpl->assign('uploadMaxFilesize', $maxUploadFilesize);
$tmpl->assign('uploadMaxHumanFilesize', OCP\Util::humanFileSize($maxUploadFilesize));
+ $tmpl->assign('freeSpace', $freeSpace);
+ $tmpl->assign('uploadLimit', $uploadLimit); // PHP upload limit
$urlLinkIdentifiers= (isset($token)?'&t='.$token:'')
.(isset($_GET['dir'])?'&dir='.$_GET['dir']:'')