summaryrefslogtreecommitdiffstats
path: root/apps/files/index.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-01-20 03:11:04 +0100
committerRobin Appelman <icewind@owncloud.com>2013-01-20 03:11:04 +0100
commit83d622132224fa61b1518e6bca430518cf138401 (patch)
tree53f79474af81e07f1304a1cf10e866b2d8af652b /apps/files/index.php
parent8ca30d244c19b33e7e3b0da247b70160a3acc44f (diff)
parentebc0c4b85bc382efcf64ad0b2613d70a193b18f2 (diff)
downloadnextcloud-server-83d622132224fa61b1518e6bca430518cf138401.tar.gz
nextcloud-server-83d622132224fa61b1518e6bca430518cf138401.zip
merge master into filesytem
Diffstat (limited to 'apps/files/index.php')
-rw-r--r--apps/files/index.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/apps/files/index.php b/apps/files/index.php
index 854218eee55..c10ae76e9ea 100644
--- a/apps/files/index.php
+++ b/apps/files/index.php
@@ -28,6 +28,7 @@ OCP\User::checkLoggedIn();
OCP\Util::addStyle('files', 'files');
OCP\Util::addscript('files', 'jquery.iframe-transport');
OCP\Util::addscript('files', 'jquery.fileupload');
+OCP\Util::addscript('files', 'jquery-visibility');
OCP\Util::addscript('files', 'filelist');
OCP\Util::addscript('files', 'fileactions');
@@ -97,12 +98,7 @@ $breadcrumbNav = new OCP\Template('files', 'part.breadcrumb', '');
$breadcrumbNav->assign('breadcrumb', $breadcrumb, false);
$breadcrumbNav->assign('baseURL', OCP\Util::linkTo('files', 'index.php') . '?dir=', false);
-$upload_max_filesize = OCP\Util::computerFileSize(ini_get('upload_max_filesize'));
-$post_max_size = OCP\Util::computerFileSize(ini_get('post_max_size'));
-$maxUploadFilesize = min($upload_max_filesize, $post_max_size);
-
-$freeSpace = max($freeSpace, 0);
-$maxUploadFilesize = min($maxUploadFilesize, $freeSpace);
+$maxUploadFilesize=OCP\Util::maxUploadFilesize($dir);
$permissions = OCP\PERMISSION_READ;
if (\OC\Files\Filesystem::isUpdatable($dir . '/')) {