diff options
author | Andrey Andreev <narf@devilix.net> | 2015-07-23 09:47:53 +0200 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2015-07-23 09:47:53 +0200 |
commit | 1a8d95a8861eabebb5ce5c01beb9110624400428 (patch) | |
tree | b4a9032f74de0500cfe83fd2021449d1c5f6c492 /system/libraries/Upload.php | |
parent | 5d064bb4c9aefff6051da0d0447a46ddd0667c99 (diff) |
Fix an issue with CI_Upload max filesize
Reported via the forums: http://forum.codeigniter.com/thread-62510.html
Diffstat (limited to 'system/libraries/Upload.php')
-rw-r--r-- | system/libraries/Upload.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/system/libraries/Upload.php b/system/libraries/Upload.php index 51232f8a7..20ddfc145 100644 --- a/system/libraries/Upload.php +++ b/system/libraries/Upload.php @@ -695,6 +695,22 @@ class CI_Upload { // -------------------------------------------------------------------- /** + * Set Maximum File Size + * + * An internal alias to set_max_filesize() to help with configuration + * as initialize() will look for a set_<property_name>() method ... + * + * @param int $n + * @return CI_Upload + */ + protected function set_max_size($n) + { + return $this->set_max_filesize($n); + } + + // -------------------------------------------------------------------- + + /** * Set Maximum File Name Length * * @param int $n |