summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <hey@jancborchardt.net>2014-02-04 08:04:19 -0800
committerJan-Christoph Borchardt <hey@jancborchardt.net>2014-02-04 08:04:19 -0800
commit0609f30d1c4ab01804d0ecf943c0d9146bb41cb7 (patch)
tree28f39a748ad378c20fbc12e7398d0df932441d31 /lib/public
parentbd6734291cd56b4d3d494a6e4138435ecb49171e (diff)
parent099b71c712c38de7dac7e386252da02bb0cadf12 (diff)
downloadnextcloud-server-0609f30d1c4ab01804d0ecf943c0d9146bb41cb7.tar.gz
nextcloud-server-0609f30d1c4ab01804d0ecf943c0d9146bb41cb7.zip
Merge pull request #6235 from NCTU-NBA/pr-exceed_upload_limit_msg
Change misleading message when file size exceeds upload limit
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/util.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/public/util.php b/lib/public/util.php
index 26c5a15cff2..d8497e29cfc 100644
--- a/lib/public/util.php
+++ b/lib/public/util.php
@@ -466,4 +466,23 @@ class Util {
public static function maxUploadFilesize($dir) {
return \OC_Helper::maxUploadFilesize($dir);
}
+
+ /**
+ * Calculate free space left within user quota
+ *
+ * @param $dir the current folder where the user currently operates
+ * @return number of bytes representing
+ */
+ public static function freeSpace($dir) {
+ return \OC_Helper::freeSpace($dir);
+ }
+
+ /**
+ * Calculate PHP upload limit
+ *
+ * @return number of bytes representing
+ */
+ public static function uploadLimit() {
+ return \OC_Helper::uploadLimit();
+ }
}