summaryrefslogtreecommitdiffstats
path: root/lib/public
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 /lib/public
parent8ca30d244c19b33e7e3b0da247b70160a3acc44f (diff)
parentebc0c4b85bc382efcf64ad0b2613d70a193b18f2 (diff)
downloadnextcloud-server-83d622132224fa61b1518e6bca430518cf138401.tar.gz
nextcloud-server-83d622132224fa61b1518e6bca430518cf138401.zip
merge master into filesytem
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/util.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/public/util.php b/lib/public/util.php
index 8197482c0dd..413dbcccd28 100644
--- a/lib/public/util.php
+++ b/lib/public/util.php
@@ -367,4 +367,14 @@ class Util {
public static function recursiveArraySearch($haystack, $needle, $index = null) {
return(\OC_Helper::recursiveArraySearch($haystack, $needle, $index));
}
+
+ /**
+ * @brief calculates the maximum upload size respecting system settings, free space and user quota
+ *
+ * @param $dir the current folder where the user currently operates
+ * @return number of bytes representing
+ */
+ public static function maxUploadFilesize($dir) {
+ return \OC_Helper::maxUploadFilesize($dir);
+ }
}