diff options
author | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2014-02-04 08:04:19 -0800 |
---|---|---|
committer | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2014-02-04 08:04:19 -0800 |
commit | 0609f30d1c4ab01804d0ecf943c0d9146bb41cb7 (patch) | |
tree | 28f39a748ad378c20fbc12e7398d0df932441d31 /lib/public | |
parent | bd6734291cd56b4d3d494a6e4138435ecb49171e (diff) | |
parent | 099b71c712c38de7dac7e386252da02bb0cadf12 (diff) | |
download | nextcloud-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.php | 19 |
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(); + } } |