summaryrefslogtreecommitdiffstats
path: root/lib/public/util.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-01-18 14:06:00 -0800
committerThomas Müller <thomas.mueller@tmit.eu>2013-01-18 14:06:00 -0800
commit31cc9aa80d4284e13dc95d2ef1428bed78c22d65 (patch)
tree3b42e3a95bc0a92cd75bba16438e9dcf55f49e89 /lib/public/util.php
parentedf3572835ac5a6584fdde7ba7bb1faa64251e2d (diff)
parent5ff29b4348a1dcb9ed32273133b1c787aaf5c72c (diff)
downloadnextcloud-server-31cc9aa80d4284e13dc95d2ef1428bed78c22d65.tar.gz
nextcloud-server-31cc9aa80d4284e13dc95d2ef1428bed78c22d65.zip
Merge pull request #986 from owncloud/fixing-784-master
the maximum upload size is now part of the response of the upload and de...
Diffstat (limited to 'lib/public/util.php')
-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);
+ }
}