diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2012-12-20 17:16:01 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2012-12-20 17:16:53 +0100 |
commit | 39d874cd902a4e3d4f7ae313ec5e15bafe35df13 (patch) | |
tree | 5ff19b3755fc02f6f9eecd64996094e2bed388dd /lib/public/util.php | |
parent | bdc8d0098adfb0225bc4a67ab72344a203448e34 (diff) | |
download | nextcloud-server-39d874cd902a4e3d4f7ae313ec5e15bafe35df13.tar.gz nextcloud-server-39d874cd902a4e3d4f7ae313ec5e15bafe35df13.zip |
the maximum upload size is now part of the response of the upload and delete operation.
the maximum upload size is updated within the browser once an upload or delete operation has been finished
Diffstat (limited to 'lib/public/util.php')
-rw-r--r-- | lib/public/util.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/public/util.php b/lib/public/util.php index 9727cfda284..9e641c6881c 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); + } } |